Repository navigation
acpmux: retain ordered prompt metadata for transcript reloads - #24739
Merged
Merged
Conversation
teamleaderleo
temporarily deployed
to
cmux-tui-merge-tree
October 24, 2026 03:47 — with
GitHub Actions
Inactive
Contributor
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
red: cmux-next checks (god files, concurrency, crash safety, l10n); no finished base run on a996238 to compare; do not merge until green; see lane-rules |
|
Found 10 test failures on Blacksmith runners: Failures
|
Collaborator
Author
|
Bead |
teamleaderleo
temporarily deployed
to
cmux-tui-merge-tree
October 24, 2026 04:36 — with
GitHub Actions
Inactive
teamleaderleo
had a problem deploying
to
cmux-tui-merge-tree
October 24, 2026 04:59 — with
GitHub Actions
Failure
teamleaderleo
temporarily deployed
to
cmux-tui-merge-tree
October 24, 2026 05:04 — with
GitHub Actions
Inactive
teamleaderleo
temporarily deployed
to
cmux-tui-merge-tree
October 24, 2026 05:06 — with
GitHub Actions
Inactive
teamleaderleo
marked this pull request as ready for review
October 24, 2026 05:25
teamleaderleo
added a commit
that referenced
this pull request
Oct 24, 2026
…24813) `msg.get("images").and_then(Value::as_array).unwrap_or(&[])` does not type-check: `unwrap_or` wants a `&Vec<Value>`, and `&[]` is a `&[_; 0]` (E0308 at hub/prompt_images.rs:382, hub/queue.rs:370, hub/queue_edit.rs:188). Map to a slice first, which is what `inline_parts` takes, and default to the empty slice. The behaviour is the same: no images means an empty list. Agent-Session: https://cmux.com/deeplink/agent?harness=claude&session=01a1603a-6462-72f0-a4b0-6937eb58e4c3&host=cosmic-gray Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 24, 2026
teamleaderleo
added a commit
that referenced
this pull request
Oct 24, 2026
* acpmux: clear the clippy errors that base's compile error hid While acpmux didn't compile on feat-cmux-next (#24739), clippy never reached these, and every acpmux PR now fails "clippy (changed cmux-tui packages)" on them: - hub/dispatch.rs, server/requests.rs: `limit.max(1).min(500)` becomes `limit.clamp(1, 500)` (manual_clamp); same bounds. - hub/prompt_images.rs, server/requests.rs (steer, report): nested `if let` blocks become let-chains (collapsible_if); same branches. - hub/dispatch.rs: drop `Briefs::by_idempotency`, which nothing calls (dead_code). - server/requests.rs: move `dispatch_policy_tests` to the end of the file (items_after_test_module). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?harness=claude&session=01a1603a-6462-72f0-a4b0-6937eb58e4c3&host=cosmic-gray * cmux-tui: drop the needless return in acpmux_request (clippy::needless_return) The unix block is the function's tail on unix, so it returns its value without `return`; the not(unix) block is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?harness=claude&session=01a1603a-6462-72f0-a4b0-6937eb58e4c3&host=cosmic-gray --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
lawrencecchen
pushed a commit
that referenced
this pull request
Oct 24, 2026
…24813) `msg.get("images").and_then(Value::as_array).unwrap_or(&[])` does not type-check: `unwrap_or` wants a `&Vec<Value>`, and `&[]` is a `&[_; 0]` (E0308 at hub/prompt_images.rs:382, hub/queue.rs:370, hub/queue_edit.rs:188). Map to a slice first, which is what `inline_parts` takes, and default to the empty slice. The behaviour is the same: no images means an empty list. Agent-Session: https://cmux.com/deeplink/agent?harness=claude&session=01a1603a-6462-72f0-a4b0-6937eb58e4c3&host=cosmic-gray Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Shipped in:
|
This branch was previously deployed
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.
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-3x.png)
Persist ordered agent prompt content metadata so reopened and queued chats retain image, text, file, document, recording and pasted-chip order. The ACP prompt itself continues to carry only validated blocks; the daemon stores bounded display descriptors separately and strips pane metadata before forwarding to the agent.
Leo: "say you paste an image and then you type something, there's the implicit captioning of that sort of thing"
Changelog
user_message.inlinePartsand queued/queue-updated metadata plumbing through immediate, queued, steer, restart and handoff paths.inlinePartsdescriptors by block kind/index and UTF-16 text ranges; reject unsafe fields and never persist raw bytes, paths or text in descriptors.persisted:false; require file descriptors to carry a name and a nonempty resource URI; keep Chat: send images and PDFs to acpmux ahead of the prompt, by reference #23047 send-by-reference attachment handling separate and compatible. Fix the image descriptor move so the Rust path compiles.Base
9d483d2fd90d7250909eefb992bcd023a8d88303; head1b1414ca299ce957619778a500dde58ad3021f45; 321 changed lines.Validation
cargo fmt --manifest-path cmux-tui/Cargo.toml --all -- --check, schema JSON parsing,git diff --check, andprepush-gate.pypass. Focused Rust tests cover descriptor validation, ordered image/text/file metadata, failed image persistence and queue metadata. Cargo build/test and app suites run through PR CI/fleet, not this host.pr-overlapfound #23921 and #23047 sharingprompt_images.rs/keep; this PR has a distinct ordered-metadata cause and preserves their by-reference URI contract. No Chief files were changed.Agent session: big-red