Skip to content

web: first-slice #4 — verify shipped work, stop wrapping dirty blob paths - #5

Merged
Code4me2 merged 1 commit into
mainfrom
cursor/web-first-slice-ask-user-9600
Aug 30, 2026
Merged

Code4me2 merged 1 commit into
mainfrom
cursor/web-first-slice-ask-user-9600

Conversation

@Code4me2

@Code4me2 Code4me2 commented Aug 30, 2026 •

Copy link
Copy Markdown
Member

Tracking: #4. Does not close it.

Why

#4's "if only one slice" order is ask_user → the three named layout defects → composer starts a turn. The hunch was that several of these were already on current main. That hunch is right: they landed in b8b6a48 (feat(workspace): all ten plan items). This PR verifies that, leaves those surfaces alone, and fixes the one remaining first-slice jank the attached G4 screenshots still show.

Already on main (verified, not rewritten)

Item Where Evidence
ask_user answerable (INTERFACE.md §7A.7) AskUserWidget.tsx posts POST /sessions/{id}/answer; submit is no longer hardcoded disabled. Affordance comes from the question (options / allow_free_text / multi); the submitted value is the server's label. web/test/stream/ask.test.tsx, web/e2e/ask.spec.ts (data-answered-by="self" / "other", abandoned in place). CLI str(o) defect is already option_label (§19.29).
ChecksPanel badge <Badge> emits data-badge on the styled element. CSS selects .badge[data-badge=…] there, not one level up on the <li>. web/src/system/Badge.tsx, web/test/system/badge.test.tsx, web/e2e/design-system.spec.ts + dom.spec.ts (same node).
Stream column 1024–1279px Shell.module.css has no media query that changes grid-template-columns. React writes data-stream / data-rail from useBreakpoint. web/src/state/shell.ts, web/e2e/design-system.spec.ts at 1440 / 1280 / 1279 / 1024 / 1023.
data-rail overlay data-rail is set. Below 1024px the rail is an overlay with scrim, close, and Escape; focus returns to the toggle. web/src/components/Shell.tsx, web/e2e/design-system.spec.ts.
Composer starts a turn (§7A) Client sends references; server composes context. POST /sessions/{id}/prompt is wired. Disabled only with a named reason (agent_unavailable / run_in_flight / no_session). The screenshot's grey Send is the honest no-runtime state, not a hardcoded disable. web/src/components/stream/Composer.tsx, web/e2e/composer.spec.ts.

The attached screenshots (empty pin, Monaco PARAMS, "No runtime attached") are a live G4 fixture slightly behind this main. They are not regressions of the three named defects.

What this PR changes

The screenshots' left rail is still eaten on current main: untracked .heph/blobs/sha256/… rows wrap because GitDirty.module.css overrode PanelBody to two columns (DataTable's empty unit cell wraps onto the next row) and the path inherited .code { word-break: break-all }.

  • Restore the three DataTable tracks.
  • Present the path as a one-line ellipsis. <Fact source="git.dirty[].path"> still carries every byte in data-value; title is the same path so hover is not a second source of truth.
  • Do not hide .heph/ rows. §13.1 reports a dirty tree, never hides it.

Four untracked blob paths in a 280px rail, each row 28px (one line), data-value still the full server path:

Working tree rail with four untracked blob paths on one line each

Unit: web/test/rail.test.tsx. Existing data-* selectors are unchanged.

Out of this PR (still #4)

Scrapyard, credits, GD&T, Timeline, PARAMS sliders, appearance, BOM, export, provider sign-in, Stage 10. Design-system rewrite of every panel: not done, not wanted.

Test

pnpm --dir web typecheck && pnpm --dir web lint && pnpm --dir web test

374 unit tests passed, including the new rail cases. Existing ask / composer / design-system / inspector suites were not rewritten. Full G4 e2e was not re-run (no heph / Python workspace in this environment; no selectors on those surfaces changed).

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Untracked `.heph/blobs/sha256/…` rows wrapped into a multi-line ribbon
because the working-tree panel overrode DataTable to two columns and
inherited word-break: break-all. The path stays a Fact; the wrapper
ellipsizes. First-slice items 1–3 of #4 are already on main.

Co-authored-by: Vel <Code4me2@users.noreply.github.com>
@Code4me2
Code4me2 marked this pull request as ready for review August 30, 2026 23:06
@Code4me2
Code4me2 merged commit d841526 into main Aug 30, 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