Commit Graph

59 Commits

Author SHA1 Message Date
andrepimenta
63299008d0 Add subscription detection and usage badge to status bar
- Detect user subscription type (Pro/Max) via CLI initialize request
- Cache subscription type in globalState for persistence
- Show clickable usage badge with chart icon in status bar
- Plan users: show "Max Plan" badge, opens live usage view
- API users: show cost badge, opens recent usage history
- Badge opens terminal in editor with ccusage command

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 00:29:08 +00:00
andrepimenta
14ac46018f Run /compact command in chat instead of spawning terminal
The /compact command now executes through the chat interface using
the existing Claude process, providing a seamless user experience
instead of opening a separate terminal window.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-02 18:12:46 +00:00
andrepimenta
a156881a08 Migrate permission system from MCP file-based to stdio-based
Replace MCP permission server with stdio-based permission flow that
communicates directly with Claude CLI via stdin/stdout. This simplifies
the architecture and fixes permission expiration issues.

Key changes:
- Use --permission-prompt-tool stdio and --input-format stream-json
- Handle control_request messages for permission prompts
- Send control_response via stdin to approve/deny
- Check local permissions for auto-approval of pre-approved tools
- Only expire pending permissions when VS Code restarts, not panel close

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-02 18:07:45 +00:00
andrepimenta
0764bf8202 Improve process termination and update diff icon colors
- Add AbortController for clean process management
- Add _killProcessGroup() with platform-specific handling (Unix/Windows/WSL)
- Add _killClaudeProcess() with proper SIGTERM→wait→SIGKILL flow
- Update spawn options with detached and signal support
- Handle WSL specially with pkill inside the distro
- Update Open Diff button icon to pastel colors

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-02 16:33:27 +00:00
andrepimenta
82899ebb40 Handle conversation compacting with status messages and token reset
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-02 00:22:47 +00:00
andrepimenta
da46d5e3d9 Optimize diff storage and improve Open Diff button behavior
- Stop storing full file contents in conversation history to reduce memory
- Compute and store only startLine/startLines for accurate line numbers on reload
- Open Diff button now only shows on last pending edit request
- Button uses stored diff data directly instead of re-reading file
- Hide button when edit result arrives (edit no longer pending)
- Show simple completion messages for Edit/MultiEdit/Write results
- Use virtual document scheme (claude-diff:) for read-only diff viewer
- Simplify tool result handling for Read/TodoWrite

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 23:19:04 +00:00
andrepimenta
6c37394015 Add Open Diff button to open VS Code's native side-by-side diff editor
- Add _openDiffEditor method using vscode.diff command
- Store temp files in extension's storageUri instead of workspace
- Clean up temp files when diff editor is closed
- Force side-by-side mode when opening diff
- Add Open Diff button with red/green icon in summary row

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 16:20:11 +00:00
andrepimenta
dd47efec04 Implement unified diff visualization for Edit, MultiEdit, and Write tools
- Add LCS-based diff algorithm with intelligent line matching
- Show proper line numbers from actual file positions
- Display color-coded additions (green), removals (red), and context lines
- Include summary statistics (+X lines added, -Y lines removed)
- Simplify tool use previews, show detailed diffs in tool results
- Parse tool result content to extract line numbers
- Update styling with monospace font and VS Code git colors

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 15:09:20 +00:00
andrepimenta
d891070d9e Modify icon and name 2025-10-14 17:23:49 +01:00
andrepimenta
62163dbc32 respect telemetry settings 2025-07-30 03:36:37 +01:00
andrepimenta
d225ff2596 Fix permission dialog when closing and opening 2025-07-30 03:26:59 +01:00
andrepimenta
5abb1fedd9 Save message in text box 2025-07-28 23:45:42 +01:00
andrepimenta
6bd906981b Fix new chat 2025-07-28 23:33:17 +01:00
andrepimenta
4f126641e4 Fix request start time isProcessing 2025-07-28 22:31:30 +01:00
andrepimenta
2d63eaac58 Fix close and open conversation 2025-07-28 22:09:22 +01:00
andrepimenta
2c47349282 fix: input overflow and flexible panel positioning 2025-07-22 21:50:56 +01:00
andrepimenta
43c1c85efb Fix permissions and add windows support 2025-07-20 00:07:02 +01:00
andrepimenta
8a581908e3 Yolo mode 2025-07-14 23:46:03 +01:00
andrepimenta
2feaed600d Fix permissions on side panel 2025-07-14 23:15:40 +01:00
andrepimenta
2aa7db86e7 custom commands init 2025-07-14 21:57:33 +01:00
andrepimenta
5b671485a1 Fix panel sending multiple prompts 2025-07-14 20:47:16 +01:00
andrepimenta
6e9893e3f3 Working in windows 2025-07-12 13:24:25 +01:00
andrepimenta
1681bea37f Filter internal mcp 2025-07-12 00:02:12 +01:00
andrepimenta
b8e5c253a3 Popular MCPs 2025-07-11 23:57:55 +01:00
andrepimenta
cf46551f00 Don't override mcp-servers.json 2025-07-09 14:48:18 +01:00
andrepimenta
857d55e8d1 change permissions mcp to claude-code-chat-permissions 2025-07-09 14:43:10 +01:00
andrepimenta
ae9ad4a794 Showing mcp servers 2025-07-09 14:39:33 +01:00
andrepimenta
83584fff60 MCP modal 2025-07-09 14:32:12 +01:00
andrepimenta
717284a979 Let user chose yolo mode when there is an error with permissions 2025-07-09 01:59:39 +01:00
andrepimenta
bad8c9a0a8 yolo mode warning 2025-07-09 01:28:43 +01:00
andrepimenta
2e4c866da2 Yolo mode init 2025-07-09 00:32:38 +01:00
andrepimenta
1fa94b9c54 Ability to add permission 2025-07-09 00:19:14 +01:00
andrepimenta
3ec983188a Settings UI for permissions 2025-07-08 23:57:38 +01:00
andrepimenta
44166defce check commands that make sense to use wildcards 2025-07-08 23:20:50 +01:00
andrepimenta
63acf5e7f9 Always allow 2025-07-08 22:29:57 +01:00
andrepimenta
ede4fbaf98 Permission UI 2025-07-08 22:01:33 +01:00
andrepimenta
06eb335f7b initial implementation 2025-07-08 21:04:10 +01:00
andrepimenta
f501d2ddc4 Move images to .claude folder 2025-07-08 13:16:24 +01:00
andrepimenta
586b004273 Enable sidebar view 2025-07-08 12:48:15 +01:00
andrepimenta
b2579ed0f8 Plan mode only for current message fix 2025-07-07 23:41:34 +01:00
andrepimenta
0bdb0ce30a Allow copy paste images and screenshots 2025-07-07 23:23:27 +01:00
andrepimenta
4c57af4141 MultiEdit UI 2025-06-24 17:40:55 +01:00
andrepimenta
dcd49458cb Label Todos 2025-06-24 03:36:15 +01:00
andrepimenta
0129cd1bc9 Changed to claude is working 2025-06-24 03:28:12 +01:00
andrepimenta
6dfdc24500 Hide result message for Read and Edit 2025-06-24 03:18:52 +01:00
andrepimenta
e97062ae03 File name better 2025-06-24 02:53:54 +01:00
andrepimenta
cd2b563be4 Show WSL alert for windows users 2025-06-24 01:59:24 +01:00
andrepimenta
a1c2e6d139 Start new session when WSL config changes 2025-06-23 23:33:42 +01:00
andrepimenta
e6681c4ae1 Fix wsl commands 2025-06-23 23:28:11 +01:00
andrepimenta
3bd58780a3 Sending sessions 2025-06-20 19:31:50 +01:00