Skip to content

perf(acpmux): reserve prompt image slots during host load - #21383

Merged
teamleaderleo merged 11 commits into
feat-cmux-nextfrom
perf/prompt-image-reservation
Oct 18, 2026
Merged

teamleaderleo merged 11 commits into
feat-cmux-nextfrom
perf/prompt-image-reservation

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Prompt attachments are fetched asynchronously from the native host. The transcript row is measured before the image arrives, so a late thumbnail insertion can push the prompt and every row below it down after the initial paint.

Change

  • Render a fixed 72px checker placeholder while the host reads a sent prompt image.
  • Swap in the decoded image with the existing cv-enter compositor-only motion token.
  • Keep missing images on the previous empty fallback path.

This reserves the vertical slot before the async response and keeps the reveal calm without changing image sizing or reduced-motion behavior.

Validation

  • git diff --check
  • Fleet CI should run the web typecheck, tests, React Doctor, compiler, and gallery checks.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Reserves a 72px placeholder while the host reads a sent prompt image so the transcript row no longer shifts when the thumbnail arrives late. If the read fails (after a reconnect or session switch) the slot is cleared so a stale thumbnail never lingers; missing images keep the previous empty fallback.

Written for commit 3ad69d2. Summary will update on new commits.

View guided diff Turn on auto-fix

@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: manaflow-ai/cmux/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 57ebf77a-92d8-461d-855d-0819dce0d0bd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

all web/size checks green

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Passes: CI passes on 3ad69d2fe3.

CI passes on 3ad69d2fe3 (run 39093163430 attempt 1).

Written by scripts/ci/classify_failures.py (ci-failure-attribution.yml); signatures are its SIGNATURES table. A machine verdict is the runner's fault, not this PR's; yours means the failing file is one this PR changes, also red on main that main's latest full suite fails the same way, seen on other PRs that it failed on another pull request's run lately.

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

CI fast guards passes on 3ad69d2fe3 (https://github.com/manaflow-ai/cmux/actions/runs/39093163430). This covers only the fast guards, not CI: CI's result is the ci-status check, and the CI failure attribution comment names any failing test.

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Bead cx-gwc27 created for this PR by the cmux coordinator.

@cursor

cursor Bot commented Oct 18, 2026

Copy link
Copy Markdown

Bugbot needs on-demand usage enabled

Bugbot uses usage-based billing for this team and requires on-demand usage to be enabled.

A team admin can enable on-demand usage in the Cursor dashboard.

@blacksmith-sh

blacksmith-sh Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Found 2 test failures on Blacksmith runners:

Failures

Test View Logs
test/apps-flow.test.ts/apps-flow.test View Logs
test/apps-flow.test.ts/apps-flow.test View Logs

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@manaflow-ai manaflow-ai deleted a comment from github-actions Bot Oct 18, 2026
@cursor

cursor Bot commented Oct 18, 2026

Copy link
Copy Markdown

Bugbot needs on-demand usage enabled

Bugbot uses usage-based billing for this team and requires on-demand usage to be enabled.

A team admin can enable on-demand usage in the Cursor dashboard.

@github-actions

Copy link
Copy Markdown
Contributor

Visual review: HQ feed · workflow run

@teamleaderleo
teamleaderleo merged commit fd53bb8 into feat-cmux-next Oct 18, 2026
103 checks passed
@teamleaderleo
teamleaderleo deleted the perf/prompt-image-reservation branch October 18, 2026 03:49
@github-actions

Copy link
Copy Markdown
Contributor

The feat-cmux-next push run https://github.com/manaflow-ai/cmux/actions/runs/39094946537 at fd53bb8 failed: cmux-next Release compile (Xcode 26).
Those jobs last passed at fde94c5. This pull request is one of 1 merged since: #21383.
If the failure is in your change, fix forward on feat-cmux-next. Pull requests run only the tiers their paths reach (docs/ci/cmux-next-tiers.md); label a batch PR full-ci to run them all before merging.

@github-actions

Copy link
Copy Markdown
Contributor

The feat-cmux-next push run https://github.com/manaflow-ai/cmux/actions/runs/39095141726 at afec4de failed: cmux-next Release compile (Xcode 26).
Those jobs last passed at fde94c5. This pull request is one of 3 merged since: #21383, #21446, #21384.
If the failure is in your change, fix forward on feat-cmux-next. Pull requests run only the tiers their paths reach (docs/ci/cmux-next-tiers.md); label a batch PR full-ci to run them all before merging.

@github-actions

Copy link
Copy Markdown
Contributor

The feat-cmux-next push run https://github.com/manaflow-ai/cmux/actions/runs/39095228117 at 9e14d7a failed: cmux-next Release compile (Xcode 26).
Those jobs last passed at fde94c5. This pull request is one of 3 merged since: #21383, #21446, #21384.
If the failure is in your change, fix forward on feat-cmux-next. Pull requests run only the tiers their paths reach (docs/ci/cmux-next-tiers.md); label a batch PR full-ci to run them all before merging.

@github-actions

Copy link
Copy Markdown
Contributor

The feat-cmux-next push run https://github.com/manaflow-ai/cmux/actions/runs/39096093835 at b246059 failed: cmux app scheme compile (Debug), cmux-next Release compile (Xcode 26).
Those jobs last passed at fde94c5. This pull request is one of 5 merged since: #21383, #21446, #21384, #21450, #21442.
If the failure is in your change, fix forward on feat-cmux-next. Pull requests run only the tiers their paths reach (docs/ci/cmux-next-tiers.md); label a batch PR full-ci to run them all before merging.

teamleaderleo added a commit that referenced this pull request Oct 20, 2026
#22024)

* test(cmux-next): the agent pane keeps the wiring the #21331 merge dropped

Fails on feat-cmux-next (5 of 5): the #21331 branch was rebased onto a tree
without #21194, #21344 and #21383, so its merge left the Chief Dock unmounted,
the Debug Settings turn footer placement unapplied, disclosures keyed without
their chat, and the sent-image slot and reply-image fade without CSS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cmux-next): restore the agent pane wiring the #21331 merge dropped

Re-applies the hunks e124e93 (#21331's branch) removed from its base
50a0c60 without meaning to, and only those:
- App.tsx: the quick surface gets the Chief Dock again (#21194, behind its
  experiment); the theme push applies turnActionsPlacement (#21344); tool and
  edited-file rows carry the chat's sessionId into their disclosures (#21344).
- conversation.css: the 72px .cv-user__image-placeholder slot (#21383), the
  left turn-actions placement rules (#21344) and the .cv-img--enter fade.

#21331's own follow-bottom deadband, THREAD_TOP and overflow-anchor changes
stay as they are. The effort track motion that branch also dropped is already
back on the tip (#21512).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(next): PR autofix at 896b604

- vp fmt webviews/src/agent-session/acpmux/replyHref.ts
- vp fmt webviews/src/pages/markdown/README.md
- vp fmt webviews/src/pages/markdown/links.ts
- vp fmt webviews/test/markdown-cmux-app-links.test.ts

Autofix-Run: https://github.com/manaflow-ai/cmux/actions/runs/39212624868

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: cmux-autofix[bot] <cmux-autofix[bot]@users.noreply.github.com>
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