Skip to content

fix(toggle-tasks): log actionStr so taskIndex visible in voice-agent.log - #677

Merged
sonichi merged 1 commit into
mainfrom
fix/toggle-tasks-log-actionStr
May 14, 2026
Merged

sonichi merged 1 commit into
mainfrom
fix/toggle-tasks-log-actionStr

Conversation

@sonichi

@sonichi sonichi commented May 14, 2026

Copy link
Copy Markdown
Owner

Summary

1-line diagnostic fix. console.log in toggleTasksTool (src/inline-tools.ts:573) now prints actionStr (e.g. expand:1) instead of action (e.g. expand). Makes voice-agent.log entries diagnostic after #674's taskIndex addition.

Why

2026-05-13 23:59 PT: voice "expand the first task" appeared broken in UI. Couldn't tell from log whether Gemini omitted taskIndex or my parsing failed. Both possibilities looked identical in [ToggleTasks] expand.

Test plan

  • tsc clean
  • manual: voice "expand the first task" → log line should now read [ToggleTasks] expand:1. If it still reads [ToggleTasks] expand, Gemini didn't pass the param (model-side bug, not parsing).

🤖 Generated with Claude Code

Diagnostic gap: the log line printed bare action ('expand'/'collapse')
not the with-suffix actionStr ('expand:1'/'collapse:2'). After #674
added the taskIndex param, log entries like '[ToggleTasks] expand'
became ambiguous — couldn't tell if Gemini passed taskIndex or not.

Surfaced during 2026-05-13 23:59 PT debug session: per-task expand
appeared broken; couldn't determine from log whether the model omitted
taskIndex or the parsing failed.

1-line change. No UI change, no schema change.
@sonichi
sonichi merged commit c5313b0 into main May 14, 2026
1 check passed
@sonichi
sonichi deleted the fix/toggle-tasks-log-actionStr branch May 14, 2026 01:16
liususan091219 pushed a commit to liususan091219/sutando-fork that referenced this pull request May 28, 2026
…log (sonichi#677)

Diagnostic gap: the log line printed bare action ('expand'/'collapse')
not the with-suffix actionStr ('expand:1'/'collapse:2'). After sonichi#674
added the taskIndex param, log entries like '[ToggleTasks] expand'
became ambiguous — couldn't tell if Gemini passed taskIndex or not.

Surfaced during 2026-05-13 23:59 PT debug session: per-task expand
appeared broken; couldn't determine from log whether the model omitted
taskIndex or the parsing failed.

1-line change. No UI change, no schema change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant