Files
openchamber/packages/vscode
Bohdan Triapitsyn 844562749d feat(ui): enable drag-and-drop attachments and image previews in chat (#390)
* feat(BottomTerminalDock): add close button next to the fullscreen toggle in the dock

* style: replace hardcoded gradient with theme value in shine text variant

* fix(header): adapt instance button for desktop only

* refactor(chat): polish sticky turn UX and message action rows for better readability

Switch to stable sticky-only turn behavior and redesign user/assistant action controls (placement, hover rules, ordering, spacing, selection-safe clamp) to reduce visual noise and improve interaction flow.

* feat(chat/message): refactor buttons in messages footer

* feat: enhance image preview functionality in chat messages

- Added a new ImagePreviewDialog component to handle image previews with navigation support.
- Updated ToolOutputDialog to utilize the new ImagePreviewDialog for displaying images.
- Modified the ToolPopupContent type to include a gallery of images and an index for the current image.
- Removed the old inline image display logic from ToolOutputDialog.
- Improved file handling in the file store, including better MIME type guessing and handling of server paths.
- Introduced a new API endpoint for handling large session message payloads, allowing for better management of multi-file attachments.
- Updated the VSCode bridge to support session message requests with appropriate headers and body handling.

* feat(proxy): implement SSE forwarding and enhance generic API request handling

* feat(chat): support submitting only queued messages

* feat: add image preview transition state

* fix: default VSCode view to draft and fixed sessions list regression
2026-02-11 19:28:22 +02:00
..
2025-12-13 16:34:17 +02:00
2026-02-10 13:36:16 +02:00
2025-12-13 16:34:17 +02:00
2026-02-10 13:36:16 +02:00
2025-12-25 17:57:31 +02:00

OpenChamber VS Code Extension

GitHub stars GitHub forks GitHub release Discord Support the project

OpenChamber inside VS Code: embeds the OpenChamber chat UI in the activity bar and connects it to the OpenCode API.

VS Code Extension

Features

OpenChamber UI

  • Smart tool visualization (inline diffs, file trees, results highlighting)
  • Rich permission cards with syntax-highlighted operation previews
  • Per-agent permission modes (ask/allow/full) per session
  • Branchable conversations: start a new session from any assistant response
  • Task tracker UI with live progress and tool summaries
  • Model selection UX (favorites, recents, and configurable tool output density)
  • UI scaling controls (font size and spacing)

VS Code Integration

  • Chat UI in activity bar
  • Session management with history
  • File attachments via native VS Code file picker (10MB limit)
  • Click-to-open files from tool output
  • Auto-start opencode instance if not running
  • Workspace-isolated OpenCode instances (different workspaces get unique instances)
  • Adapts to VS Code's light/dark/high-contrast themes

Commands

Command Description
OpenChamber: Focus on Chat View Focus chat panel
OpenChamber: Restart API Connection Restart OpenCode API process
OpenChamber: Show OpenCode Status Provide debug info useful for development or bug report

Configuration

Setting Default Description
openchamber.apiUrl http://localhost:47339 OpenCode API server URL. Not required by default. Spawns its own process when not set.

Requirements

  • OpenCode CLI installed and available in PATH (or set via OPENCODE_BINARY env var)
  • VS Code 1.85.0+

Development

bun install
bun run --cwd packages/vscode build            # build extension + webview
cd packages/vscode && bunx vsce package --no-dependencies

Local Install

  • After packaging: code --install-extension packages/vscode/openchamber-*.vsix
  • Or in VS Code: Extensions panel → "Install from VSIX…" and select the file