Repository navigation
fix(threads): honor saved permissions over turn history - #1023
Merged
Merged
Conversation
nixuuu
enabled auto-merge (squash)
November 19, 2026 11:31
nixuuu
disabled auto-merge
November 19, 2026 11:34
nixuuu
enabled auto-merge (squash)
November 19, 2026 11:38
nixuuu
disabled auto-merge
November 19, 2026 11:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
582cc9b8passed all 32 focused gateway/worker integration tests throughcheck:tmp, including saved defaults, queued inheritance of a later restriction, deliberate overrides, CI wakeups and live permissions.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.