Commit Graph

16 Commits

Author SHA1 Message Date
Ed_
ad84843d9e conductor(checkpoint): Checkpoint end of Phase 2 2026-02-24 19:59:54 -05:00
Ed_
9d59a454e0 feat(gui2): Complete EventEmitter integration 2026-02-24 19:40:18 -05:00
Ed_
a85293ff99 feat(gui2): Implement missing GUI hook handlers 2026-02-24 19:37:58 -05:00
Ed_
57cb63b9c9 conductor(track): Complete gui2_feature_parity track
Close gui2_feature_parity track after implementing all features
and conducting manual and automated verification.

Key Achievements:
- Integrated event-driven architecture and MCP client.
- Ported API hooks and performance diagnostics.
- Implemented Prior Session Viewer.
- Refactored UI to a Hub-based layout.
- Added agent capability toggles.
- Achieved full theme integration.
- Developed comprehensive test suite.

Note: Remaining UI display issues for text panels in the comms and
tool call history will be addressed in a subsequent track.
2026-02-23 23:27:43 -05:00
Ed_
dbf2962c54 fix(gui): Restore 'Load Log' button and fix docking crash
fix(mcp): Improve path resolution and error messages
2026-02-23 23:00:17 -05:00
Ed_
f5ef2d850f refactor(gui): Implement user feedback for UI layout 2026-02-23 22:36:45 -05:00
Ed_
ddb53b250f refactor(gui2): Restructure layout into discrete Hubs
Automates the refactoring of the monolithic _gui_func in gui_2.py into separate rendering methods, nested within 'Context Hub', 'AI Settings Hub', 'Discussion Hub', and 'Operations Hub', utilizing tab bars. Adds tests to ensure the new default windows correctly represent this Hub structure.
2026-02-23 22:15:13 -05:00
Ed_
ece84d4c4f feat(gui2): Integrate mcp_client.py for native file tools
Wires up the mcp_client.perf_monitor_callback to the gui_2.py App class and verifies the dispatch loop through a newly created test.
2026-02-23 22:06:55 -05:00
Ed_
2ab3f101d6 Merge origin/cache 2026-02-23 22:03:06 -05:00
bd8551d282 Harden reliability, security, and UX across core modules
- Add thread safety: _anthropic_history_lock and _send_lock in ai_client to prevent concurrent corruption
  - Add _send_thread_lock in gui_2 for atomic check-and-start of send thread
  - Add atexit fallback in session_logger to flush log files on abnormal exit
  - Fix file descriptor leaks: use context managers for urlopen in mcp_client
  - Cap unbounded tool output growth at 500KB per send() call (both Gemini and Anthropic)
  - Harden path traversal: resolve(strict=True) with fallback in mcp_client allowlist checks
  - Add SLOP_CREDENTIALS env var override for credentials.toml with helpful error message
  - Fix Gemini token heuristic: use _CHARS_PER_TOKEN (3.5) instead of hardcoded // 4
  - Add keyboard shortcuts: Ctrl+Enter to send, Ctrl+L to clear message input
  - Add auto-save: flush project and config to disk every 60 seconds
2026-02-23 21:29:30 -05:00
Ed_
6d825e6585 wip: gemini doing gui_2.py catchup track 2026-02-23 21:07:06 -05:00
Ed_
c19b13e4ac Merge branch 'origin/cache' 2026-02-23 20:32:49 -05:00
Ed_
24b831c712 feat(gui2): Integrate core event system
Integrates the ai_client.events emitter into the gui_2.py App class. Adds a new test file to verify that the App subscribes to API lifecycle events upon initialization. This is the first step in aligning gui_2.py with the project's event-driven architecture.
2026-02-23 20:22:36 -05:00
69401365be Port missing features to gui_2 and optimize caching
- Port 10 missing features from gui.py to gui_2.py: performance
    diagnostics, prior session log viewing, token budget visualization,
    agent tools config, API hooks server, GUI task queue, discussion
    truncation, THINKING/LIVE indicators, event subscriptions, and
    session usage tracking
  - Persist window visibility state in config.toml
  - Fix Gemini cache invalidation by separating discussion history
    from cached context (use MD5 hash instead of built-in hash)
  - Add cost optimizations: tool output truncation at source, proactive
    history trimming at 40%, summary_only support in aggregate.run()
  - Add cleanup() for destroying API caches on exit
2026-02-23 20:06:13 -05:00
75e1cf84fe fixed up gui_2.py
multi viewport works and no crashes thus far
2026-02-23 19:33:09 -05:00
Ed_
96a013c3dc fixes and possible wip gui_2/theme_2 for multi-viewport support 2026-02-22 01:43:24 -05:00