Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Problem

When agents are actively working and updating their TODO list, completed items clutter the display and make it harder to see what's currently being worked on.

Solution

Only show completed TODOs in the pinned TODO list when the chat is not streaming:

  • While streaming: Hide completed todos, only show pending/in_progress
  • After streaming: Show all todos including completed for context

Implementation

Modified PinnedTodoList component to:

  1. Check canInterrupt from workspace state (indicates active streaming)
  2. Filter out completed todos when streaming
  3. Pass filtered list to TodoList component

Benefits

  • Cleaner UI during active work - Focus on what's happening now
  • Context when idle - See full history of what was accomplished
  • No data loss - Completed todos still exist, just hidden temporarily

Generated with cmux

Only show completed TODOs when chat is not streaming to reduce clutter
during active work. When streaming stops, completed todos reappear to
provide context on what was accomplished.

- Filter out completed todos in PinnedTodoList when canInterrupt is true
- Pass filtered todos to TodoList component
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ammario ammario merged commit 033eccc into main Oct 28, 2025
13 checks passed
@ammario ammario deleted the hide-completed-todos-while-streaming branch October 28, 2025 23:11
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.

2 participants