Skip to content

fix(acp): preserve edit routing and steer delivery - #5702

Closed
loganj wants to merge 16 commits into
fix/edit-message-agent-mentionsfrom
larry/pr-4741-final
Closed

fix(acp): preserve edit routing and steer delivery#5702
loganj wants to merge 16 commits into
fix/edit-message-agent-mentionsfrom
larry/pr-4741-final

Conversation

@loganj

@loganj loganj commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Preserve original-message routing for edits that add agent mentions.
  • Serialize queued native steer preparation and fallback handling, including membership invalidation and acknowledgement fencing.

Related issue

N/A

Testing

  • cargo test -p buzz-acp — 758 unit + 9 integration passed on a3f356cb28007c7696c51b368659f4b39930efc9
  • cargo clippy -p buzz-acp -- -D warnings
  • cargo fmt --check
  • git diff --check origin/main...HEAD

The required pre-push hook was run once and blocked publication only because the unrelated full mobile suite had four existing failures in channel/search tests; none of those files are changed by this branch. The approved exact head was then pushed unchanged.

npub1em3jmyn4vu57urqf03txrwreccvejvwdy5c4er8nnrwt7rc4tncscs3ssu and others added 16 commits August 10, 2026 14:06
Include kind:40003 in the default mention subscriptions across normal, dynamic-channel, and setup listeners. Preserve explicit kind overrides and document the actionable default.

Signed-off-by: npub1em3jmyn4vu57urqf03txrwreccvejvwdy5c4er8nnrwt7rc4tncscs3ssu <cee32d92756729ee0c097c5661b879c6199931cd25315c8cf398dcbf0f155cf1@buzz.block.builderlab.xyz>
Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
Signed-off-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
Signed-off-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Larry <8cf5a83f590ec0955b11647d1c88f796a98e088c30a492c58e0e46c3026ae7a4@buzz.block.builderlab.xyz>
Signed-off-by: Brother Darryl <146fb160a3266e6165bfa385f6048c975eda9e21cf65da097a0b5ea7952532a5@buzz.block.builderlab.xyz>
@loganj
loganj requested a review from a team as a code owner August 12, 2026 21:35

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

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

) -> Option<crate::queue::ResolvedEdit> {
let target_event_id = crate::queue::edit_target_id(event)?;
let target_id = EventId::from_hex(&target_event_id).ok()?;
let filter = nostr::Filter::new().id(target_id).limit(1);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add explicit kinds to edit-target lookups

Add an explicit kinds constraint to this edit-target filter and the equivalent filter in fetch_edit_original; the repository's relay contract requires every /query filter to specify kinds, otherwise the p-gate can return 403. In that case both normal and setup-mode edit routing always fall back to the target event rather than resolving the original thread root, so replies to edited threaded messages are attached at the wrong level and lose their intended thread context.

AGENTS.md reference: AGENTS.md:L429-L429

Useful? React with 👍 / 👎.

@loganj

loganj commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator Author

Closing: this was opened accidentally while attempting to publish the reviewed update to existing PR #4741. #4741 remains the delivery PR.

@loganj loganj closed this Aug 12, 2026
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