COMPLETED:
- Added ViewWithSize(width, height) pattern to all submodels
- login.go: responsive provider rows with adaptive widths
- switch.go: responsive agent rows without card borders
- mappings.go: responsive table columns with calculateColumnWidths()
- usage.go: responsive stat cards (2x2 grid layout)
- logs.go: responsive log entries with message truncation
- Fixed main View() layout calculation in tui.go
- Properly accounts for border (2) + padding (2) = 4 chars per panel
- sidebarWidth now represents content width (20/14 for normal/narrow)
- contentWidth = m.width - sidebarWidth - 9 (accounts for both panels)
- Added new screen files:
- integrations.go: setup/integration screen
- logs.go: real-time log viewer with filtering
- mappings.go: model alias mappings table
- usage.go: usage statistics with charts
PENDING TEST:
- Verify sidebar displays correctly alongside content (was overflowing)
- Test all screens at various terminal widths (60, 80, 100+ cols)
KNOWN ISSUE BEING FIXED:
- Sidebar was showing only "[8] Setup" at top due to width overflow
- Content panel was too wide, causing horizontal wrap
Cherry-picked fixes:
- fix(antigravity): inject required placeholder when properties exist without required
- fix(translators): correct key path for system_instruction.parts in Claude request logic
- Add package.json with bun postinstall script
- Add install.ts for binary download
- Add bin wrapper script
- Add README with usage instructions
- Version 0.1.0
Add 'Shell' button per agent that opens modal displaying environment
variables and shell profile configuration snippets. Includes copy-to-
clipboard functionality for easy shell integration.
Add live/history toggle, date range filtering, model/provider/status
filters, pagination, export/import/clear buttons, and statistics display.
Fetches from persistent /request-history endpoint.
Add standalone ppswitch binary for fast agent configuration switching
without server logging overhead. Usage:
- ppswitch Show all agent statuses
- ppswitch <agent> Show specific agent status
- ppswitch <agent> <mode> Switch agent to proxy/native mode
Add --switch and --mode flags plus subcommand-style 'proxypilot switch'
syntax for quick agent configuration switching. Supports both flag style
(--switch claude --mode proxy) and subcommand style (proxypilot switch
claude proxy).
Add DoSwitch() and DoSwitchStatusAll() for switching agent configs
between proxy mode (routed through ProxyPilot) and native mode (direct
API access). Supports claude, gemini, codex, opencode, droid, cursor,
kilo, and roocode agents with backup/restore functionality.
Add GET/PUT /thinking-budget endpoint for configuring extended
thinking token budgets. Supports preset levels (Low 2048, Medium 8192,
High 32768) and custom values with enable/disable toggle.
Add management endpoints for request history:
- GET /request-history - list entries with pagination
- GET /request-history/stats - aggregate statistics
- DELETE /request-history - clear all entries
- POST /request-history/export - export to JSON
- POST /request-history/import - import from JSON
- POST /request-history/save - force save to disk
Integrate RequestHistoryManager with request logging middleware.
Add RequestHistoryManager with file-based persistence at
~/.cli-proxy-api/request-history.json. Features:
- Max 500 entries with automatic pruning
- Auto-save every 30 seconds
- Thread-safe with mutex protection
- In-memory ring buffer for performance