xonecas.io
64875
Mc

mini-coder / commit 320ab5f

docs: update TODO.md with Phase 4c progress and notes

xonecas2026-04-05 320ab5f90e7c101170193f5e70e95dfdb0c3c7c9 parent c77df13

1 file changed

TODO.md+14−2
@@ -102,7 +102,10 @@
102102
103103 ### 4c — Commands
104104
105-- [ ] `/model` — interactive model selector (Select component, available providers/models)
105+- [x] `/model` — interactive model selector (Select component, available providers/models)
106+- [x] `/effort` — effort level selector
107+- [x] Overlay layer system for interactive Select commands
108+- [x] Wire `parseInput()` into Enter handler, route commands vs text
106109 - [ ] `/session` — session manager (list, resume, delete)
107110 - [ ] `/new` — new session, reset counters
108111 - [ ] `/fork` — fork current session
@@ -110,10 +113,19 @@
110113 - [ ] `/reasoning` — toggle thinking display
111114 - [ ] `/verbose` — toggle full output (disable truncation)
112115 - [ ] `/login` / `/logout` — OAuth flows via pi-ai
113-- [ ] `/effort` — effort level selector
114116 - [ ] `/help` — list commands, AGENTS.md files, skills, plugins
115117 - [ ] `/` + Tab — command autocomplete in input
116118
119+### Notes from Phase 4c
120+
121+- Overlay system: cel-tui multi-layer viewport. `activeOverlay` module state holds a `SelectInstance` + title. When active, `cel.viewport()` returns `[base, overlayLayer]`. Overlay is a centered modal with `padding: { x: 4 }` and fixed height (`OVERLAY_MAX_VISIBLE + 3`), `bgColor: theme.overlayBg`.
122+- Escape dismissal: cel-tui intercepts Escape at the framework level (unfocuses before `onKeyPress` fires), so overlay dismissal uses `onBlur: dismissOverlay` instead of `onKeyPress`.
123+- `/model` builds items from `getAvailableModels(state)` (new helper in `index.ts`), marks current with `(current)` suffix, `filterText` includes both provider and model id.
124+- `/effort` shows 4 levels (low/medium/high/xhigh), marks current.
125+- `handleInput()` routes through `parseInput()` → `handleCommand()` for commands, `submitMessage()` for text. Skill and image cases are stubs for Phase 4d.
126+- `Theme` gained `overlayBg: Color` (default `"color08"`).
127+- 158 tests still pass across 9 files.
128+
117129 ### 4d — Polish
118130
119131 - [ ] Tab file path autocomplete in input