Skip to content

fix(ui): hide empty Environment and steady Details startup - #179560

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/details-initial-jitter-signed
Oct 21, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
brzezowski/details-initial-jitter-signed

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Desktop Details showed an empty Environment heading and divider before any useful data arrived. Unknown Outputs and Progress also made the panel grow and shrink during startup, while Context appeared abruptly.

User Impact

Environment is completely absent until its first real machine, branch, worktree or diff content arrives, then the whole block enters smoothly. Cached content remains immediate. Unknown or empty optional Outputs and Progress stay absent. Newly arriving Context keeps its two-second grace period and smooth entrance.

Supersedes #179068. The original remains open with its retained merge history intact until this successor is verified and landed.

Why This Change Was Made

Environment visibility follows the rows it can actually render. Its data subscription remains outside the visibility boundary and continues while empty, even if the saved disclosure choice is collapsed. Environment and Context share the existing 200 ms entrance and focus cleanup; reduced motion uses a 100 ms opacity fade. The disclosure owner still handles later content resizing.

Evidence

Current paired full-window captures and validation compare the previous signed head 1496482 with the new Environment behavior. The Processes empty state visible in these frames belongs to the separate #179558 change and is not included here.

Before empty, after empty, and first real Environment data

  • The new regression fails on the previous head because Environment is present without data, then passes with the fix. It also proves discovery while collapsed and independent diff, branch, worktree and machine content.
  • Final focused tests: 21 passed (18 unit/component and 3 Chromium disclosure cases), 5.58 s including both wrappers.
  • Arrival regression file: 3 passed, 1.37 s including the wrapper. Current-head CI timing will be recorded when available.
  • Bundled UI: 2/2 normal/reduced-motion scenarios passed, 9.604 s test execution. Environment starts absent, then expands from 0 to 81 px with intermediate heights and no late settlement jump. Cached reopening, composer focus/draft and menu actions pass; no page errors.
  • UI typecheck, targeted lint/styles, formatting and whitespace checks passed. Fresh independent Codex review found no actionable P0–P2 issues.
  • CI on the first Environment update exposed two fixture defects: a missing required worktree branch and a docking fixture that still relied on empty Environment chrome. The follow-up supplies valid data without weakening any assertions. The exact UI-chat test typecheck and all 13 browser plus 3 arrival tests pass locally (4.54 s including wrappers); independent review of the fixture delta is clean.
  • Earlier Outputs, Context and pending-Progress proof remains historical evidence for those unchanged behaviors; its Environment screenshots are superseded by the current comparison above.

Risk and coverage

Desktop presentation only; Gateway reads and stored data retain their owners. Mobile loading states are unchanged. Environment's existing machine/menu, branch, worktree and valid diff rows all count as content. The separate Joined publication owner is coordinated to include its rendered publication and fallback-action rows when that change integrates. Chromium on macOS with a synthetic Gateway is covered; live-provider and WebKit behavior were not exercised.

Additional local replay observation

The pre-fix full-file browser replay also missed the expected diff-summary count in one existing case; that case did not fail in CI. No separate product repair is claimed for that observation. After the two scoped fixture corrections, the full browser file passed all 13 cases in its original order.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 21, 2026 14:24
@clawsweeper

clawsweeper Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Current combined-tree captures

These full-window images were captured by the latest passing bundled-UI run on the reviewed combined tree 0b045713, including main's current Processes section. The successor publishes the byte-identical seven-file product diff; its main baseline advanced only through files outside that diff.

The first frame keeps unknown optional progress absent during a slow read. The second shows Environment settled after its first row arrives. Both normal and reduced-motion scenarios passed, including focus, draft, cached reopening and menu checks.

The before/after comparisons in the PR body are historical captures from the original proof, not screenshots of this current main baseline.

Current combined tree: unknown progress stays absent

Current combined tree: Environment after first-row arrival

@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) October 21, 2026 14:30
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Environment stays absent until its first data

Current branch commit: 29be610a7146ac3cec945dceeb5961c8c8cd0b07 (GitHub-signed, exact reviewed candidate tree). The PR head projection is still catching up; no repeated push or auto-merge is requested.

Before: 1496482 renders an empty Environment heading/divider. After: the complete block is absent until a machine, branch, worktree or actual diff can render. The existing data owner stays active while empty, including a saved collapsed choice. On first arrival the complete block enters over 200 ms; reduced motion uses a 100 ms opacity fade. Cached reopening stays immediate.

The paired built-UI capture uses the same synthetic session and viewport. Normal and reduced-motion scenarios pass, including intermediate geometry, no late jump at settlement, preserved composer focus/draft, cached reopening and menu actions. Final validation: 21 focused tests, UI types, lint/styles/format, and independent Codex review without actionable P0–P2 findings.

The Processes empty state visible here belongs to the separate #179558 change; these captures intentionally do not include or duplicate that patch. No live provider or WebKit proof is claimed.

The comparison image contains only crops of the three full-window frames attached below, in order: before empty, after empty, first data.

Before empty, after empty, and first real Environment data

Before: empty Environment heading and divider

After: no Environment block while data is absent

After: Environment with first real data

@vyctorbrzezowski vyctorbrzezowski changed the title fix(ui): keep session Details steady during initial loading fix(ui): hide empty Environment and steady Details startup Oct 21, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 21, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 1083079 into main Oct 21, 2026
84 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/details-initial-jitter-signed branch October 21, 2026 16:04
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant