Skip to content

fix(web): show a running cad import above the composer instead of failing the first message - #207

Merged
AadiJo merged 1 commit into
mainfrom
cad-import-composer-banner
Nov 4, 2026
Merged

AadiJo merged 1 commit into
mainfrom
cad-import-composer-banner

Conversation

@AadiJo

@AadiJo AadiJo commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

A new local CAD project opens its first chat right away, but its first import holds the project for minutes. The starter tasks and Send looked ready, so the first message failed with "Orchestration command invariant failed (thread.turn.start): A CAD operation is active for this project." Nothing in the chat said an import was running.

Now, while a CAD operation holds the project, the composer shows it in the existing banner stack: what is running (converting with SolidWorks, importing, or downloading from Onshape), an elapsed clock, and Cancel. Send waits, and its tooltip says why. Starter tasks still fill the composer, so the draft is ready when the import ends. The same banner covers later syncs in a chat that already has messages.

  • A disabled Send button now shows its reason in a tooltip. Before, the reason only went to the screen reader label, so the existing reasons get the tooltip too.
  • Banners attached to the composer were wider than the composer in an empty chat: their width was a fixed 48rem, while that composer is 42.5rem. The composer stack now sets --chat-composer-max-width, and attached drawers inset from it in both layouts.
  • local-cad-project-e2e.ts waits for Send to enable during the first import, and waits for a stopped turn to end before picking another file. The server refuses CAD work until the stop lands.

First import, with a starter task in the composer:

Banner during the first import

Send waits with its reason

Import done, the draft kept and Send ready:

Import done

The same banner in a chat with messages:

Banner in a chat with messages

Proof: the dev app driven by Playwright against real SolidWorks (banner during a first import, Send disabled with its tooltip, enabled after; banner insets measured at 21 px on each side of the composer in both layouts), and the full local-cad-project-e2e.ts flow passing on this branch.

Reviewed with sol-loop: 2 rounds with gpt-6.1-sol. Sol verdict: approved


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

@vercel

vercel Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cadsense Skipped Skipped Nov 4, 2026 12:35am UTC

@AadiJo
AadiJo merged commit 9743d20 into main Nov 4, 2026
8 checks passed
@AadiJo
AadiJo deleted the cad-import-composer-banner branch November 26, 2026 19:49

This branch was previously deployed

1 inactive deployment
Preview — 47733712 Deployed Nov 4, 2026 by vercel[bot]
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