Skip to content

Commit c60a924

Browse files
tbitcsoz-agent
andcommitted
docs: LEDGER.md — Apr 21-22 VS Code extension overhaul session
Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent 44ac03b commit c60a924

1 file changed

Lines changed: 75 additions & 0 deletions

File tree

LEDGER.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,3 +390,78 @@ Three agent roles: Planner (read-only inspection + planning), Builder (code/doc
390390

391391
### Next step
392392
specsmith can now improve itself via `specsmith agent improve <task>`. Use it for Phase 4 tasks (feature flags, instinct, eval harness). Review changes before committing.
393+
394+
---
395+
396+
## Session 2026-04-21/22 — VS Code Extension Overhaul + Critical Fixes
397+
398+
**Status:** Complete
399+
**Branch:** develop (both repos)
400+
401+
### What changed
402+
403+
**specsmith (Python CLI):**
404+
- Ollama timeout: 120s → 600s completion, 300s streaming (fixed frequent timeouts)
405+
- AgentConfig: effective_utility_model, effective_max_iterations (0=unlimited)
406+
- Model recommendation: qwen2.5:14b as default agent model (not 7b coder)
407+
- pip install -e after every code change
408+
409+
**specsmith-vscode (VS Code extension) — MAJOR OVERHAUL:**
410+
411+
*Architecture realignment:*
412+
- Project ≠ Session: GovernancePanel decoupled from SessionPanel
413+
- ⚙ on project row opens Project Settings without needing a session
414+
- GovernancePanel stays open when sessions close
415+
- Multiple sessions per project supported
416+
- Renamed "specsmith Settings" → "Global Settings"
417+
- Project name in tab title: "⚙ Project Settings (specsmith)"
418+
- Removed duplicate settings buttons from sidebar menus
419+
420+
*New features:*
421+
- Agent tab in Project Settings: per-project provider/model/context/iteration config
422+
- Ollama model catalog: 16 models across 4 tiers (Tiny/Balanced/Capable/Powerful)
423+
- Filter buttons: All / Installed / Available / ⭐ Recommended
424+
- GPU-aware model recommendation (qwen2.5:14b for ≥8GB, coder:7b for 4GB, CPU fallback)
425+
- ✔ DEFAULT indicator per model (replaces confusing ⭐ star)
426+
- Model cards: name, size, VRAM, ctx, best-for, install status, pull/remove buttons
427+
- Sorted: default → installed → fits GPU → needs more VRAM
428+
- Conditional buttons: Update/Upgrade only shown when newer version available
429+
- "Free (local)" cost display for Ollama provider
430+
- View Full button for truncated errors/tool outputs
431+
- Bridge timeout: 5min warn + 15min kill (was 5min kill)
432+
- Governance auto-fix on session start
433+
- Phase dropdown dark mode fix
434+
435+
*CRITICAL BUG FIXES:*
436+
- **SessionPanel webview JS extracted to media/session.js** — the entire 462-line
437+
webview script was embedded in a TypeScript template literal. esbuild mangled
438+
escaped backticks (\`) and variable references (\${var}), crashing the browser
439+
JS parser and killing ALL chat functionality (Enter, Send, models, buttons).
440+
Fix: external .js file that esbuild doesn't touch.
441+
- **SettingsPanel INST_VER variable mangled by esbuild** — same root cause.
442+
Fix: pass version via data-* attribute, read from DOM.
443+
- **GovernancePanel LANGUAGES/FPGA_TOOLS mangled** — same root cause.
444+
Fix: pass via JSON script tags, parse from DOM.
445+
- **All onclick quote escaping**\\' in template literals became '' (empty).
446+
Fix: use &#39; HTML entities.
447+
- **Model dropdown empty**_refreshModels now always sends static fallback
448+
if live fetch fails or returns empty.
449+
- **CSP blocking external session.js** — script-src needed both 'unsafe-inline'
450+
AND vscode-resource origins.
451+
452+
### Verification
453+
- specsmith: 249 tests pass, ruff clean
454+
- specsmith-vscode: lint clean, build clean
455+
- GovernancePanel webview: Node syntax check PASSED
456+
- SettingsPanel webview: Node syntax check PASSED
457+
- SessionPanel (media/session.js): Node syntax check PASSED
458+
- Chat session: loads, Enter sends, models populate, tools execute
459+
460+
### Open TODOs
461+
- [ ] Agent tab: populate model dropdown from provider API
462+
- [ ] Agent tab: pre-fill defaults from Global Settings
463+
- [ ] Interactive architecture/requirements gap fixing
464+
- [ ] Git diff coloring in chat (green/red)
465+
- [ ] Agent task visualization panel
466+
- [ ] GPU support: AMD ROCm, Apple M, Intel Arc, CPU fallback detection
467+
- [ ] Phase 4: feature flags, instinct, eval, memory, multi-agent, server, Theia

0 commit comments

Comments
 (0)