Skip to content

fix(client): a read-only window draws no core menu write - #2264

Draft
HugoXK wants to merge 1 commit into
ThinkFlowLab:mainfrom
HugoXK:dev/3-p462-readonly-context-menu
Draft

HugoXK wants to merge 1 commit into
ThinkFlowLab:mainfrom
HugoXK:dev/3-p462-readonly-context-menu

Conversation

@HugoXK

@HugoXK HugoXK commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #2253

Written-by: Dev3
Owner: Dev3
Reviewer: Birfy
Base: 03a1253
Tree: 6e205bcdf249664945d822e7a1b680bd43104a78
Verified commit: cbd69b7
Pushed head: cbd69b7

Scope

A read-only FlyBot window still draws the Bot and group right-click menu's core writes — Pin and Unpin, Duplicate, Make Main Bot, Remove Main Bot role, Hide from sidebar, Rename group, Delete and Delete group — although the host refuses every one of those endpoints, so each row only produces a failure toast. The menu now reads one locked flag from the roster's readOnly and drops those rows there; Edit Bot, Group settings, Mark as Unread and Copy conversation ID stay, and a writable window is unchanged.

Files

  • core/src/client/context-menu.js — the gate
  • core/test/context-menu-readonly.test.js — the test
  • docs/subsystems/core-client.md — the owned doc
  • changelog.d/2253-readonly-context-menu-writes.fixed.md — the fragment
  • core/client.js and patches/ds-bot/** — generated from the above

Readings attached at the final tip; this draft reserves the issue and requests no review.

@HugoXK
HugoXK force-pushed the dev/3-p462-readonly-context-menu branch from a815d69 to cbd69b7 Compare November 3, 2026 04:51
The Bot and group right-click menus painted Pin, Duplicate, Make Main
Bot, Hide from sidebar, Rename group and Delete even when the roster
said the window is read-only, and the host refuses every one of those
endpoints, so the row only produced a failure toast. Compute one
`locked` from `roster.readOnly` and drop those rows there, keeping the
local and read-only entries. Refs ThinkFlowLab#2253.
@github-actions github-actions Bot added the risk:T1 Risk tier T1 (client, tests, generated files), set by the controller from the diff label Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:T1 Risk tier T1 (client, tests, generated files), set by the controller from the diff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

core: a read-only window's Bot and group menus still offer Pin, Duplicate, Make Main Bot, Hide and Delete, and every one is refused by the host

1 participant