From 2b3fbe66e83d7bf3afe9617a8324107e54ea4b85 Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Mon, 16 Jun 2025 10:38:48 +0200 Subject: [PATCH] chore: remove test keymap --- internal/tui/tui.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/internal/tui/tui.go b/internal/tui/tui.go index 4ba05667536c2be6877e78fe55c79f7eec56a0f6..125e33b3b794608c0069f7eb286971f0e51d8c14 100644 --- a/internal/tui/tui.go +++ b/internal/tui/tui.go @@ -8,7 +8,6 @@ import ( "github.com/charmbracelet/crush/internal/app" "github.com/charmbracelet/crush/internal/config" "github.com/charmbracelet/crush/internal/llm/agent" - "github.com/charmbracelet/crush/internal/llm/tools" "github.com/charmbracelet/crush/internal/logging" "github.com/charmbracelet/crush/internal/permission" "github.com/charmbracelet/crush/internal/pubsub" @@ -52,6 +51,7 @@ type appModel struct { // Session selectedSessionID string // The ID of the currently selected session + fullHelp bool // Whether to show full help text } // Init initializes the application model and returns initial commands. @@ -220,16 +220,6 @@ func (a *appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return a, tea.Batch(cmds...) // Key Press Messages case tea.KeyPressMsg: - if msg.String() == "ctrl+t" { - go a.app.Permissions.Request(permission.CreatePermissionRequest{ - SessionID: "123", - ToolName: "bash", - Action: "execute", - Params: tools.BashPermissionsParams{ - Command: "ls -la", - }, - }) - } return a, a.handleKeyPressMsg(msg) } s, _ := a.status.Update(msg)