Skip to content

Conversation

@benodiwal
Copy link
Contributor

Closes #836

  • Removed ID enumeration from createTodos output
  • Changed updateTodo to display descriptions instead of raw IDs
  • Converts todo_1 → Task1, UUIDs/other formats → Task in case of no description found
Screenshot 2025-11-18 at 9 51 07 AM Screenshot 2025-11-18 at 12 32 52 PM Screenshot 2025-11-18 at 12 33 27 PM

@benodiwal benodiwal requested a review from a team as a code owner November 18, 2025 07:15
@benodiwal
Copy link
Contributor Author

@rumpl @jeanlaurent, there is a case when task description is not rendering i have written a fallback for that, can u check if its fine or we should take some other approach for this case, it is visible like this for that case

Screenshot 2025-11-18 at 12 51 09 PM

@jeanlaurent
Copy link
Member

jeanlaurent commented Nov 18, 2025

First, Thanks for working on this @benodiwal
What prevents a task description from not rendering?


return &tools.ToolCallResult{
Output: output,
Output: fmt.Sprintf("Created %d todos", len(params.Descriptions)),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't remove the current output from the create_todos tool, the LLM needs the IDs of the created todos so that it can update them at a later stage. If we don't show the IDs it will have to make an additional call to list_todos to get their IDs which just wastes tokens.

For this issue we need to only change the way we render the todo calls.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeeah, ig that is the issue task description was not rendering which i mentioned above for the initial todo updates.

cc: @jeanlaurent

icon, style := renderTodoIcon("completed")
styledLines = append(styledLines, style.Render(icon)+" "+style.Render(strings.TrimSuffix(strings.TrimSpace(line[2:]), " (Status: completed)")))
default:
// Extract todo content, removing the ID portion
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very brittle, we should find a way to test it and make sure the TUI doesn't break if we change the output of the todo tool

@benodiwal
Copy link
Contributor Author

@rumpl I have implemented a simple parser to make the logic less fragile with some unit tests for the parser and integration tests for the tui as well, can u check if there are some changes required or not

@benodiwal
Copy link
Contributor Author

hey @rumpl, gentle ping to review :)

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.

Don't print todo call results

3 participants