Skip to content

🤖 fix: archive all sidebar variants#3741

Merged
coadler merged 4 commits into
mainfrom
sidebar-0mqg
Jul 21, 2026
Merged

🤖 fix: archive all sidebar variants#3741
coadler merged 4 commits into
mainfrom
sidebar-0mqg

Conversation

@coadler

@coadler coadler commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a context menu action to variant group rows in the sidebar so all variants can be archived together without expanding the group and archiving each chat individually.

Implementation

  • adds an Archive all variants action on right-click and supports the existing archive keyboard shortcut when the group row is focused
  • preflights every variant before changing the group to avoid leaving it partially archived
  • combines streaming and untracked-file warnings into one group confirmation
  • archives each member through the existing workspace archive path
  • adds UI coverage for opening the group context menu and archiving every member

Risks

Low and limited to sidebar variant-group archive behavior. Individual workspace archive behavior continues to use the existing preflight, confirmation, and error handling paths.


Generated with mux • Model: openai:gpt-5.6-sol • Thinking: medium • Cost: $13.98

@coadler

coadler commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@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: 955b9b11a6

ℹ️ 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".

Comment thread src/browser/components/ProjectSidebar/TaskGroupListItem.tsx
Comment thread src/browser/components/ProjectSidebar/ProjectSidebar.tsx Outdated
@coadler

coadler commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Addressed both findings:

  • the group archive keybind now stops native propagation so the selected-workspace handler cannot also fire
  • bulk archive now stops immediately when any member archive fails, with coverage for the failure path

@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: f88e991a06

ℹ️ 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".

Comment thread src/browser/components/ProjectSidebar/TaskGroupListItem.tsx Outdated
@coadler

coadler commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Addressed the portal keyboard finding by limiting row shortcuts to events targeting the group row itself, with coverage for Enter on the nested menu action.

@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: 1fe0e958a8

ℹ️ 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".

Comment thread src/browser/components/ProjectSidebar/TaskGroupListItem.tsx Outdated
@coadler

coadler commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Addressed the nested-menu archive shortcut finding: the shared archive keybind is handled and propagation is stopped before row-target filtering, while plain Enter/Space on menu controls remains isolated from row expansion. Added coverage for both paths.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 5d8bf1b062

ℹ️ 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".

Mux added 4 commits July 20, 2026 17:49
Co-authored-by: Mux <noreply@coder.com>
Co-authored-by: Mux <noreply@coder.com>
Co-authored-by: Mux <noreply@coder.com>
Co-authored-by: Mux <noreply@coder.com>
@coadler

coadler commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Rebased onto current main, which includes #3740's deterministic replacement for the flaky live-LLM review refresh test. Local targeted tests and static checks pass after the rebase.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: dfd9c9d107

ℹ️ 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".

@coadler
coadler added this pull request to the merge queue Jul 21, 2026
Merged via the queue into main with commit 7f5f47f Jul 21, 2026
21 of 22 checks passed
@coadler
coadler deleted the sidebar-0mqg branch July 21, 2026 15:43
mux-bot Bot added a commit that referenced this pull request Jul 21, 2026
Both the archive keyboard-shortcut path and the context-menu item inlined
the byte-identical props.onArchiveAll(...).catch(() => { /* same comment */ })
fire-and-forget block (introduced by #3741). Extracted a local archiveAll
helper so the swallow-and-surface rationale lives in one place.
mux-bot Bot added a commit that referenced this pull request Jul 21, 2026
Both the archive keyboard-shortcut path and the context-menu item inlined
the byte-identical props.onArchiveAll(...).catch(() => { /* same comment */ })
fire-and-forget block (introduced by #3741). Extracted a local archiveAll
helper so the swallow-and-surface rationale lives in one place.
mux-bot Bot added a commit that referenced this pull request Jul 22, 2026
Both the archive keyboard-shortcut path and the context-menu item inlined
the byte-identical props.onArchiveAll(...).catch(() => { /* same comment */ })
fire-and-forget block (introduced by #3741). Extracted a local archiveAll
helper so the swallow-and-surface rationale lives in one place.
mux-bot Bot added a commit that referenced this pull request Jul 22, 2026
Both the archive keyboard-shortcut path and the context-menu item inlined
the byte-identical props.onArchiveAll(...).catch(() => { /* same comment */ })
fire-and-forget block (introduced by #3741). Extracted a local archiveAll
helper so the swallow-and-surface rationale lives in one place.
mux-bot Bot added a commit that referenced this pull request Jul 23, 2026
Both the archive keyboard-shortcut path and the context-menu item inlined
the byte-identical props.onArchiveAll(...).catch(() => { /* same comment */ })
fire-and-forget block (introduced by #3741). Extracted a local archiveAll
helper so the swallow-and-surface rationale lives in one place.
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