Compare commits

..

3 Commits

Author SHA1 Message Date
Ed_
865d8dd13b feat(mma): Phase 2 — migrate _render_tool_calls_panel to dict access
Replace tuple destructure 'script, result, _ = self._tool_log[i]'
with dict access 'entry = self._tool_log[i]; script = entry[script]; result = entry[result]'
Prerequisite for Phase 3 filter logic.
2026-03-02 16:21:27 -05:00
Ed_
fb0d6be2e6 conductor(plan): Record Phase 1 checkpoint bc1a570; mark Task 2.1 in progress 2026-03-02 16:20:52 -05:00
Ed_
bc1a5707a0 conductor(checkpoint): Checkpoint end of Phase 1 — mma_agent_focus_ux 2026-03-02 16:20:25 -05:00
2 changed files with 6 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ Architecture reference: [docs/guide_mma.md](../../../docs/guide_mma.md)
---
## Phase 1: Tier Tagging at Emission
## Phase 1: Tier Tagging at Emission [checkpoint: bc1a570]
Focus: Add `current_tier` context variable to `ai_client` and stamp it on every comms/tool entry at the point of emission. No UI changes — purely data layer.
- [x] Task 1.1: Add `current_tier` module variable to `ai_client.py`. 8d9f25d
@@ -16,7 +16,7 @@ Focus: Add `current_tier` context variable to `ai_client` and stamp it on every
- [x] Task 1.5: Migrate `_tool_log` from tuple to dict; update emission and storage. 8d9f25d
- [x] Task 1.6: Write tests for Phase 1. 8 tests, 12/12 passed. 8d9f25d
- [~] Task 1.7: Conductor — User Manual Verification
- [x] Task 1.7: Conductor — User Manual Verification. App renders, comms history panel intact. 00a196c
- Launch app. Open a send in normal mode — confirm comms entries in Operations Hub > Comms History still render.
- (MMA run not required at this phase — data layer only.)
@@ -25,7 +25,7 @@ Focus: Add `current_tier` context variable to `ai_client` and stamp it on every
## Phase 2: Tool Log Reader Migration
Focus: Update `_render_tool_calls_panel` to read dicts. No UI change — just fixes the access pattern before Phase 3 adds filter logic.
- [ ] Task 2.1: Update `_render_tool_calls_panel` to use dict access.
- [~] Task 2.1: Update `_render_tool_calls_panel` to use dict access.
- **Location**: `gui_2.py:2989-3039`. Confirm with `get_file_slice(2989, 3042)`.
- **What**: Replace `script, result, _ = self._tool_log[i_minus_one]` with:
```python

View File

@@ -2971,7 +2971,9 @@ class App:
clipper.begin(len(self._tool_log))
while clipper.step():
for i_minus_one in range(clipper.display_start, clipper.display_end):
i = i_minus_one + 1
entry = self._tool_log[i_minus_one]
script = entry["script"]
result = entry["result"]
script, result, _ = self._tool_log[i_minus_one]
first_line = script.strip().splitlines()[0][:80] if script.strip() else "(empty)"
imgui.text_colored(C_KEY, f"Call #{i}: {first_line}")