Files
g3/g3-plan/completed_todo_2025-12-09_16-16-51.md
Jochen 633da0d8a6 Refine planner mode UI, logging, and history tracking
- Display coach feedback content (up to 25 lines) instead of just length
- Write GIT COMMIT entry to history before actual commit for better a...
- Implement single-line status updates during LLM processing with too...
- Display non-tool LLM text responses in planner UI
- Redirect all logs to <workspace>/logs directory instead of codepath
- Preserve TODO file in planner mode for history (prevent deletion)

Completed files:
- completed_requirements_2025-12-09_16-16-51.md
- completed_todo_2025-12-09_16-16-51.md
2025-12-09 17:03:53 +11:00

1.1 KiB

G3 Planner Requirements Review

1. Display Coach Feedback Content (Not Just Length)

  • Display first 25 lines of coach feedback content
  • Truncate with "..." indicator if feedback exceeds 25 lines
  • Keep showing char count as secondary info

2. TODO File Location and Preservation in Planning Mode

  • G3_TODO_PATH is set in run_coach_player_loop()
  • todo_write checks for planner mode before deletion
  • TODO file preserved for rename to completed_todo_*.md

3. Write GIT COMMIT Entry BEFORE Actual Commit

  • history::write_git_commit() called at line 485
  • git::commit() called at line 489 (AFTER history write)

4. Single-Line UI Updates During LLM Processing

  • print_status_line uses \r to overwrite previous line
  • notify_sse_received shows "Thinking..." status
  • print_tool_header clears status line and prints tool on new line
  • print_agent_response displays non-tool text messages

5. Write Logs to Workspace Path (Not Relative)

  • G3_WORKSPACE_PATH set in run_coach_player_loop()
  • get_logs_dir() checks G3_WORKSPACE_PATH first
  • All logging uses get_logs_dir()