Files
openchamber/packages/vscode
theblazehen 235f80643e feat: add UI customization and model management features (#60)
* feat: add UI customization and model management features

Add comprehensive UI customization options and enhanced model selection:

- **Favorite & Recent Models**: Star models for quick access, track 5 most recent
  - Add favorite/recent sections to model dropdowns
  - Persist preferences in local storage
  - Works in ModelControls and ModelSelector components

- **Tool Call Expansion Settings**: Control default expansion state for tool outputs
  - Three modes: collapsed, activity (summary), detailed
  - Applies to activity groups and individual tool calls
  - Configurable in Appearance Settings

- **Font Size & Spacing Controls**: Adjustable typography and layout density
  - Font size: 50-200% scaling of all semantic typography
  - Spacing/padding: 50-200% scaling of margins, gaps, line heights
  - Real-time preview with reset buttons
  - Settings in Appearance Settings

- **VSCode Extension Settings View**: Full settings access in VSCode extension
  - Add settings navigation and view type
  - Settings button in header
  - Navigate between sessions, chat, and settings

Technical changes:
- Enhanced useUIStore with new state management
- Dynamic CSS variable scaling for typography and spacing
- Typography helper functions for variable access
- ThemeProvider integration for auto-applying scales

* fix: hide theme mode in VSCode and fix detailed tool expansion

- Hide "Theme Mode" setting in VSCode extension settings as VSCode
  dynamically applies its own theme to the extension
- Fix bug where tools from subsequent messages in a turn weren't
  expanded when "Detailed" mode was selected
- Now correctly aggregates all tool IDs from turnGroupingContext when
  calculating effective expanded tools for progressive groups
2025-12-15 18:11:38 +02:00
..
2025-12-13 16:34:17 +02:00
2025-12-13 16:34:17 +02:00
2025-12-13 16:34:17 +02:00
2025-12-15 14:34:17 +02:00
2025-12-13 16:34:17 +02:00
2025-12-13 16:34:17 +02:00

OpenChamber VS Code Extension

AI coding assistant for VS Code powered by the OpenCode API. Embeds the OpenChamber chat interface in VS Code's activity bar.

VS Code Extension

Features

  • Chat UI in activity bar
  • Session management with history
  • File attachments via native VS Code file picker (10MB limit)
  • Auto-start opencode serve if not running
  • Workspace-isolated opencode instances (different workspaces get unique opencode 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

Configuration

Setting Default Description
openchamber.apiUrl http://localhost:47339 OpenCode API server URL

Requirements

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

Development

pnpm install
pnpm -C packages/vscode run build            # build extension + webview
pnpm -C packages/vscode exec 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