Skip to content

feat(desktop): add channel management menu actions#1841

Draft
brow wants to merge 6 commits into
mainfrom
channel-context-menu-actions
Draft

feat(desktop): add channel management menu actions#1841
brow wants to merge 6 commits into
mainfrom
channel-context-menu-actions

Conversation

@brow

@brow brow commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

What changed?

Add Edit channel and Archive channel to the desktop channel contextual menu for owners, admins, and owners of the channel-owning agent. Edit opens the existing management flow directly in edit mode; Archive uses the existing mutation and immediately removes the archived channel from the sidebar.

Permission-dependent rows remain disabled while membership resolves, and are hidden for members, DMs, and archived channels.

Why?

Channel management already exposed these actions in the detail pane, but the channel contextual menu omitted them.

Before / After

Before After
Contextual menu before Contextual menu after

How is it tested?

Build and run.

Added tests:

The focused Playwright suite passes, including cold-cache permission resolution. Type checking and scoped Biome checks pass. The deep-dual pre-review loop completed after three rounds with no actionable findings. Repository pre-push integration tests reached two existing environment-sensitive buzz-auth keyfile failures (bad_keyfile_permissions, missing_key); desktop tests passed.

🤖 This PR was authored with an agent.

npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e added 6 commits July 13, 2026 17:45
Co-authored-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
Keep context-menu capabilities stable per open session while warming permission queries, make edit requests replayable, and strengthen permission assertions.

Co-authored-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
Reserve disabled management rows until permissions resolve so cold-cache menus remain safe and stable.

Co-authored-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
Freeze management action visibility for each mounted menu session to prevent stale refetches from shifting actionable rows.

Co-authored-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
Keep cold-cache channel management actions visible but disabled until permissions resolve, and cover the loading state plus negative menu assertions.

Co-authored-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
Keep permission-loading rows stable for the open menu, treat query failures as resolved, and make the cold-cache assertion deterministic.

Co-authored-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1ux8n2yfs8qfvgd75s7kyhar2mztac355v6vmrz4juc9l3msw4pgstums9e <e18f3511303812c437d487ac4bf46ad897dc46946699b18ab2e60bf8ee0ea851@sprout-oss.stage.blox.sqprod.co>
@brow

brow commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@brow

brow commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

@builderbot review

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

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