conductor(plan): Close track context_token_viz_20260301 — all phases verified

This commit is contained in:
2026-03-02 11:39:10 -05:00
parent 2929a64b34
commit d577457330

View File

@@ -20,4 +20,4 @@ Architecture reference: [docs/guide_architecture.md](../../docs/guide_architectu
- [x] Task 3.1: Hook `_token_stats` refresh into three trigger points. 6f18102: (a) after `_do_generate()` completes — cache `stable_md` and call `get_history_bleed_stats`; (b) after provider/model switch in `current_provider.setter` and `current_model.setter` — clear and re-fetch; (c) after each `handle_ai_response` in `_process_pending_gui_tasks` — refresh stats since history grew. For (c), use a flag `self._token_stats_dirty = True` and refresh in the next frame's render call to avoid calling the stats function too frequently.
- [x] Task 3.2: Add the token budget panel to the Hook API. 6f18102 Extend `/api/gui/mma_status` (or add a new `/api/gui/token_stats` endpoint) to expose `_token_stats` for simulation verification. This allows tests to assert on token utilization levels.
- [ ] Task 3.3: Conductor - User Manual Verification 'Phase 3: Auto-Refresh & Integration' (Protocol in workflow.md)
- [x] Task 3.3: Conductor - User Manual Verification 'Phase 3: Auto-Refresh & Integration' (Protocol in workflow.md). 2929a64 — verified by user, panel rendering correctly.