Skip to content

feat: filter agent chats by chat status - #30009

Open
jakehwll wants to merge 2 commits into
jakehwll/agents-filter-pr-nonefrom
jakehwll/agent-filters-statuses
Open

jakehwll wants to merge 2 commits into
jakehwll/agents-filter-pr-nonefrom
jakehwll/agent-filters-statuses

Conversation

@jakehwll

@jakehwll jakehwll commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

🤖 This PR was written by Coder Agents on behalf of Jake Howell.

The sidebar's Chat status filter only offered Read/Unread. This turns it into a real status filter backed by the chat_status enum, the same value the row icon already shows. Stacked on #30006.

  • New status:<waiting|running|error|requires_action|interrupting> search filter (repeated or comma-separated) plus a chat_statuses param on GetChats.
  • Sidebar Status submenu offers Requires action, Error, Working and Idle; Working covers interrupting, since stopping a turn is too brief to be worth its own option. A full selection emits no filter.
  • Unread moves out to its own checkbox (unread=true in the URL), so it narrows a status selection instead of competing with it.
  • Grouping by status now sections by the five statuses instead of Unread/Read, reusing getChatStatusDisplay for labels and icons.
image

@jakehwll
jakehwll added this pull request to stack #30007 September 27, 2026 09:37
@github-actions

Copy link
Copy Markdown
Contributor

Docs preview

Check off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here.

@jakehwll jakehwll changed the title feat: extend status filter to be actual agent statuses feat: filter agent chats by chat status Sep 27, 2026
@jakehwll
jakehwll marked this pull request as ready for review September 27, 2026 09:42
@jakehwll
jakehwll requested a review from a team as a code owner September 27, 2026 09:42
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-27T09:46:05.436310Z 931356d Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Copy link
Copy Markdown

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.

Reviewed commit: 931356d089

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

archived: archivedFilter,
prStatuses: sidebarFilters.prStatuses,
chatStatus: chatStatusFilter,
statuses,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep created chats out of nonmatching status lists

When a subset such as Error or Requires action is selected, this creates a status-filtered list cache, but a root created watch event still calls prependToInfiniteChatsCache, which only checks the archived filter. A newly created waiting or running chat is therefore inserted into the active nonmatching list, and the created branch does not invalidate the list, so the incorrect row can remain until a later status event or refetch. Make the prepend path status-aware or invalidate filtered lists for created events.

Useful? React with 👍 / 👎.

@linear-code

linear-code Bot commented Sep 27, 2026

Copy link
Copy Markdown

CODAGT-1195

This branch has not been deployed

No deployments
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