on main help sign in
chore: remove test keymap
2b3fbe6Kujtim Hoxha
internal/tui/tui.go+1−11
@@ -8,7 +8,6 @@ import (
8 "github.com/charmbracelet/crush/internal/app"
8 "github.com/charmbracelet/crush/internal/app"
9 "github.com/charmbracelet/crush/internal/config"
9 "github.com/charmbracelet/crush/internal/config"
10 "github.com/charmbracelet/crush/internal/llm/agent"
10 "github.com/charmbracelet/crush/internal/llm/agent"
11− "github.com/charmbracelet/crush/internal/llm/tools"
12 "github.com/charmbracelet/crush/internal/logging"
11 "github.com/charmbracelet/crush/internal/logging"
13 "github.com/charmbracelet/crush/internal/permission"
12 "github.com/charmbracelet/crush/internal/permission"
14 "github.com/charmbracelet/crush/internal/pubsub"
13 "github.com/charmbracelet/crush/internal/pubsub"
@@ -52,6 +51,7 @@ type appModel struct {
52
51
53 // Session
52 // Session
54 selectedSessionID string // The ID of the currently selected session
53 selectedSessionID string // The ID of the currently selected session
54+ fullHelp bool // Whether to show full help text
55}
55}
56
56
57// Init initializes the application model and returns initial commands.
57// Init initializes the application model and returns initial commands.
@@ -220,16 +220,6 @@ func (a *appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
220 return a, tea.Batch(cmds...)
220 return a, tea.Batch(cmds...)
221 // Key Press Messages
221 // Key Press Messages
222 case tea.KeyPressMsg:
222 case tea.KeyPressMsg:
223− if msg.String() == "ctrl+t" {
224− go a.app.Permissions.Request(permission.CreatePermissionRequest{
225− SessionID: "123",
226− ToolName: "bash",
227− Action: "execute",
228− Params: tools.BashPermissionsParams{
229− Command: "ls -la",
230− },
231− })
232− }
233 return a, a.handleKeyPressMsg(msg)
223 return a, a.handleKeyPressMsg(msg)
234 }
224 }
235 s, _ := a.status.Update(msg)
225 s, _ := a.status.Update(msg)