Fix planner UI whitespace and workspace logs directory

Resolve two critical issues in planner mode that persisted through
multiple fix attempts:

1. Remove excessive whitespace between tool call displays by replacing
   direct println!() calls with ui_writer methods and eliminating
   redundant newlines in agent response streaming.

2. Ensure all log files (errors, sessions, tool calls, context dumps)
   are written to <workspace>/logs instead of codepath by properly
   initializing G3_WORKSPACE_PATH from --workspace argument.
This commit is contained in:
Jochen
2025-12-10 16:18:49 +11:00
parent a03a432963
commit 87bceba54f
8 changed files with 310 additions and 20 deletions

View File

@@ -66,3 +66,13 @@
2025-12-10 11:11:50 - GIT HEAD (75aa2d983eebae471c07cec4de9c246afeaec19d)
2025-12-10 11:23:16 - REFINING REQUIREMENTS (new_requirements.md)
2025-12-10 11:23:16 - REFINING REQUIREMENTS (new_requirements.md)
2025-12-10 11:33:39 - REFINING REQUIREMENTS (new_requirements.md)
2025-12-10 11:47:28 - GIT HEAD (a03a432963fd637aba23c1835a3e6d5b3ece40fc)
2025-12-10 11:47:33 - START IMPLEMENTING (current_requirements.md)
<<
Fourth attempt to fix planner UI issues: excessive whitespace between tool calls and logs written to wrong
directory. Must run app with --planning flag, verify tool calls display on single lines with no blank lines between
them, and confirm all logs (errors, sessions, tool_calls, context_window) write to <workspace>/logs not codepath.
Previous attempts failed due to lack of actual testing. Implementer must visually verify fixes work before submitting.
>>
2025-12-10 16:17:02 - COMPLETED REQUIREMENTS (completed_requirements_2025-12-10_16-17-02.md, completed_todo_2025-12-10_16-17-02.md)