Skip to content

feat(demo): show real Work and Code sample results - #11

Merged
ZachariahAyers merged 3 commits into
howlandfrom
codex/howland-work-code
Oct 30, 2026
Merged

ZachariahAyers merged 3 commits into
howlandfrom
codex/howland-work-code

Conversation

@ZachariahAyers

Copy link
Copy Markdown

The public demo currently shows only a conversation. Add Work and Code modes with a sample proposal/website panel, PDF previews and downloads, actual changes/source, and immutable preview URLs supplied by the paired Howland gateway. Reuse platform chat for smooth text and per-answer report review; consent, cancellation and lease close remain explicit. Native app code is unchanged.

Validated locally: 25 client/component checks, scoped demo typecheck, and sealed browser checks at 1280x900, 390x844 and 320x568 using controlled model responses with real PDF/preview operations. The small-phone composer overlap was reproduced and fixed. Full hosted Vite/type checks and live-model compliance remain pending; this PR does not authorize deployment.

Design: P1 actual check/revision state; P5 existing controls and shared renderer; P9 explicit hosted-demo consent; P10 local QA screenshots /tmp/howland-work-code-work-1280.png and /tmp/howland-work-code-code-320.png. Independent QA is reviewing http://127.0.0.1:34454/ with its fixture limits disclosed. Howland source f793490cbe2d14c5eaff497ccce3daa2eeb86f58 pins this exact UI head cb48694.

@ZachariahAyers ZachariahAyers left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What this change does: Adds Work/Code sample panels, shared conversation/report controls, document downloads and website previews.

Reviewed the full cb48694 change, the toolbar-wrap delta through a0c2374, and the connected Howland gateway. One mode-recovery defect remains below. A controlled transport probe reproduced it using the exact client and server-workbench source; no model call was made.

Verdict: fix the mode-recovery finding before acceptance. Prior-head UI/release-contract CI passed; those results do not cover the new head. Howland must also adopt the final corrected UI pin and pass its own image checks.

Not checked: independent browser QA or provider behavior. No merge, release or deployment performed.

if (!workspace || mode === workspace.mode || request.current || stopPending.current || switching) return;
const current = version.current; setSwitching(true); setError("");
try { const sample = await client.workspace(mode); if (current === version.current) setWorkspace(sample); }
catch { if (current === version.current) setError("The workspace could not switch modes. Try a new conversation."); }

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] Reconcile an uncertain mode change before enabling Send. POST /demo/mode mutates the server before returning. If the response is lost or times out, this catch retains the old workspace and finally clears switching; client.ready remains true. Reproduction: start in Work, let the server apply Code but drop its response, then send a proposal request. The screen still shows proposal.md while the server targets index.html. Read back /demo/workspace and update the visible mode before allowing another send, or keep sending blocked until explicit recovery/close. Add a response-lost-after-commit regression.

Copy link
Copy Markdown
Author

Independent local correction retest PASS at c71e537 paired with Howland4ff50af25799efb07815e292d307291fe065e067. Toolbar wraps without overflow at320/305 outer widths; Phone/Desktop controls work at1280/390/320; Work→Code preserves revised preview. Full evidence and limits are recorded on Howland PR42 and AUDIT/evidence/2026-10-30-independent-qa/howland/correction-retest.md. This is controlled local UI evidence, not final production-bundle/provider acceptance. Lost-switch-response fault recovery was not independently exercised.

@ZachariahAyers ZachariahAyers left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What this change does: recovers the actual workspace after an uncertain mode switch and binds each edit request to the mode and revision visible when it was submitted.

Source review accepted at c71e537. The lost-response finding is resolved in combination with Howland's server-side mode/revision check before charging or provider admission. The synchronous pending guard prevents a new send during recovery, and the uncertain mutation is never replayed.

Independent focused verification: 25 tests passed across demo-client.test.ts and demo-app-mount.test.tsx, including the mutated-server/lost-response case and request binding. Exact-head Public demo checks 41080297806 and Release contract 41080297791 passed; the former includes actual application typechecking and the public browser build. Diff whitespace checks passed.

Browser QA and deployment remain separate. Howland's remaining grammar finding must be resolved for the combined delivery; this review does not authorize publication.

@ZachariahAyers
ZachariahAyers merged commit 33a3f8d into howland Oct 30, 2026
6 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.

1 participant