Skip to content

web: shrink composer; collapse empty rail sections; omit detached branch - #33

Merged
Code4me2 merged 2 commits into
mainfrom
cursor/composer-rail-header-chrome-4f04
Aug 31, 2026
Merged

Code4me2 merged 2 commits into
mainfrom
cursor/composer-rail-header-chrome-4f04

Conversation

@Code4me2

Copy link
Copy Markdown
Member

Idle composer at 1280×800 is now a one-row prompt plus Send / Cancel / disclose (optional model chip when GET /providers named a model and the agent is available). Context chips and Add current view fold into “What will the agent be told?”. POST /context/preview is unchanged.

§6.4 DFM stays two separate inspector actions: project auto_run toggle and Run DFM. They left the composer; they did not vanish and they are not one switch. e2e selectors [data-composer-dfm], [data-dfm-auto-run-toggle], [data-dfm-run] now target the inspector DFM panel.

Rail Analyses / Docs / Globals / Imports / Materials stay listed and empty-honest; empty sections start collapsed. Header Export/BOM, viewport well, rail Sign-in, Token, and compact providers are untouched.

Git porcelain (detached) is not a branch Fact. Abbreviated head still shows when head is a real oid. No branch or HEAD is invented when GET /git/status 404s.

What to re-measure at 1280×800: idle stream footer (Send on-screen), empty rail sections not eating 280px, header identity without (detached) as a branch.

Open in Web Open in Cursor 

cursoragent and others added 2 commits August 31, 2026 19:35
Idle composer is now one-row prompt + Send/Cancel/disclose (optional model
chip). DFM auto-run and Run DFM stay two inspector actions, not composer
chrome. Context chips and Add current view fold into disclose.
Porcelain (detached) is not a branch Fact; head still shows when it is an oid.

Co-authored-by: Vel <Code4me2@users.noreply.github.com>
Co-authored-by: Vel <Code4me2@users.noreply.github.com>
@Code4me2
Code4me2 marked this pull request as ready for review August 31, 2026 19:37
@Code4me2

Copy link
Copy Markdown
Member Author

Adversarial review (do not merge)

Reviewed 451f468 vs main 3436a47 (12 files, web-only, +401/-197). Charter: idle composer polish; §6.4 stays two inspector actions; e2e selectors retargeted; empty rail sections listed and empty-honest; no invented branch/HEAD; no G4/G5/G10 weaken; no engine/server; no Spark/GLM; no #14 paint.

BLOCK checklist

Condition Verdict
DFM collapsed into one switch No. DfmActions is two Buttons (variant="toggle" + variant="quiet"), distinct nodes, distinct selectors. Inspector test asserts toggle !== runControl with and without a run.
Composer e2e still asserts deleted chrome No. composer.spec.ts case 2 asserts composer [data-composer-dfm] / [data-dfm-auto-run-toggle] / [data-dfm-run] count 0, then retargets onto [data-inspector-panel="dfm"]. Cases 1 and 6 open disclose before [data-context-add-view]. No other e2e still hunts those selectors on the composer. G4.X in dom.spec.ts is untouched and still reads findings off the inspector.
Empty rail sections hidden No. PROJECT_TREE_SECTIONS is still the closed five; ProjectTree still mounts all five at data-tree-section; empty body is EmptyState (data-tree-section-empty) only when expanded; default open is new Set(). This PR does not change ProjectTree.tsx — collapse-empty was already on main.
G4 / G5 / G10 weakened No. No gate file, no mission_plan.md, no stage pytest, no G4.8 fixture rewrite, no ProvidersPanel / egress change. Composer e2e remains the §7A.12 suite, separate from G4.8 (stream.spec.ts unedited).
Engine / server changes No. Diff is web/ only. POST /context/preview is still previewContext(envelope) — no client compose.
Spark / GLM No. No new house model, no picker. glm-5.3-flash in operator-chrome.test.tsx is a pre-existing fixture on main, not introduced here. Model chip is still GET /providers models[].id behind showModelChrome.
#14 paint No. No CAM / scan / process-pack UI. Rail section names stay empty-honest absences (“The engine has not projected any items… no catalog is invented here.”).

Header Export/BOM (PartChrome), viewport well (#32), and rail Sign-in clip are outside the diff.

§6.4

The two writes moved, they did not merge. Composer no longer hosts them; DfmPanel does, including last: null. Routes unchanged: POST /project/config/dfm and POST /parts/{part}/dfm. data-composer-dfm on the inspector is a leftover name; the e2e contract is the selector, and it is live.

showDfmChrome is now unused by any component. DfmPanel shows both actions whenever dfm.data exists (including agent_unavailable). That is stricter than “must not vanish,” not a collapse.

§7A

Idle form is prompt (rows={1} until focus/text) + Send + Cancel + disclose + optional model chip. Chips and Add current view sit inside disclose; preview is still advisory and still hits the server. §7A.8 / §7A.10 closed vocabularies, no-retry, no data-source on chips, request-text purity path, and G4.8 CLI fixture are intact.

Residual (not a listed BLOCK): §7A.3 still says the chip row is rendered above the textarea so the operator sees the references before send. Folding them into disclose is the stated polish; the default envelope is still sent opt-out. e2e case 2 opens disclose before asserting chips. Spec text was not amended.

Tree honesty / git identity

(detached) is what git_projection.py copies out of porcelain v2 # branch.head. The header omits it as git.branch and still prints an abbreviated oid when # branch.oid is a real hash. headerHead rejects HEAD and non-oids. 404 / unanswered GET /git/status paints neither field. No client-minted main / HEAD.

CI at review time

web (node), lint + type, and render goldens (pinned image) (the Playwright e2e job) are green. Remaining stage gates were still running; none of those trees are in this diff.

MERGE — web-only chrome move: two DFM actions live on DfmPanel with e2e retargeted, empty rail sections stay listed, no invented git identity and no G4/G5/G10/engine/#14 breach.

@Code4me2
Code4me2 merged commit 6b020d9 into main Aug 31, 2026
18 checks passed
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.

2 participants