Skip to content

fix(threads): honor saved permissions over turn history - #1023

Merged
nixuuu merged 3 commits into
devfrom
fix/keep-saved-thread-permissions
Nov 19, 2026
Merged

nixuuu merged 3 commits into
devfrom
fix/keep-saved-thread-permissions

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Change

An earlier user turn could keep the composer on Ask first after the owner explicitly saved Full access on a Claude thread. The gateway then received Ask first as a message override and started the turn in that mode, even though the stored thread default remained Full access.

Web/desktop and mobile now prefer the explicitly saved thread mode over turn history. A message without a draft override inherits the gateway's default when its turn starts, including a restriction saved while the message waited in the queue. A deliberate per-message choice still applies. When Claude's running turn uses a different mode from the next queued turn, the web picker shows both. Picking the current mode again explicitly uses it for the next queued message. Steers use the running turn's permissions. Existing owner and worker capability checks apply to Full access.

The original report did not identify the version or agent. The regression reproduces one confirmed cause using Claude.

Fixes: #418

Verification

  • Reproduced on nix-pc before the fix with a scripted worker. The turn received Ask first while the thread had saved Full access.
  • Revision 582cc9b8 passed all 32 focused gateway/worker integration tests through check:tmp, including saved defaults, queued inheritance of a later restriction, deliberate overrides, CI wakeups and live permissions.
  • Web and mobile typechecks, scoped lint and formatting, and diff checks passed on nix-pc.
  • Checked Chromium with a local gateway at 1440 px and 375 px in light and dark themes. The live picker showed Ask first now and Full access next. Picking Ask first again queued an Ask first turn at the worker, and the idle picker returned to the saved Full access afterward. Checked short, typical and long thread titles.
  • Required CI runs the full verification gate.

Copy audit

Passed docs/copy.md §8. “Now” and “Next” display both permission modes when they differ. The menu explains how to apply the current mode to the next queued message. The existing “This message” label identifies a draft exception. Accessible names include the scope, and the distinction is readable without relying on icon or colour.

@nixuuu
nixuuu enabled auto-merge (squash) November 19, 2026 11:31
@nixuuu
nixuuu disabled auto-merge November 19, 2026 11:34
@nixuuu
nixuuu enabled auto-merge (squash) November 19, 2026 11:38
@nixuuu
nixuuu disabled auto-merge November 19, 2026 11:39
@nixuuu
nixuuu enabled auto-merge (squash) November 19, 2026 11:44
@nixuuu
nixuuu merged commit 767e4d7 into dev Nov 19, 2026
17 checks passed
@nixuuu
nixuuu deleted the fix/keep-saved-thread-permissions branch November 19, 2026 11:50
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