Repository navigation
feat(templates): add directly into an editable pending chat - #196395
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: stale review; fresh review needed. Summary Next step Review history (7 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Follow-up at
The latest review still leaves substantive recovery work: runtime-fact validation on retained retry, reconciliation of installer-owned partial instruction writes, restart-persistent bootstrap custody, preserving ordinary agents.create immediate greeting, and populated upgrade proof. UI review also identifies the still-open A-admitted → B-created → A-failed → return-to-A draft/retry access defect. The test-type finding is the only one fixed by this small follow-up. No merge, deploy, live Gateway mutation, or repeated browser/performance proof was performed. |
|
Merged via squash.
|
…#196395) * feat(templates): admit durable chat before verified setup * feat(templates): add directly into an editable pending chat * test(templates): align CI fixtures with current owner contracts * fix(templates): resume retained initialization through canonical owners * fix(ui): retain Template drafts and retry setup in place * test(templates): derive retained checkpoint from installer contract * fix(templates): resume retained agents from active runtime facts * fix(agents): preserve the immediate ordinary onboarding greeting * fix(templates): roll back owned instructions before retained retry * fix(templates): recover retained setup after a refused config write * fix(templates): persist deferred bootstrap custody across restarts * fix(ui): retain admitted Template recovery across new chats * fix(agents): defer bootstrap schema addition to workspace writes * refactor(gateway): extract workspace replies and session target validation * test(templates): remove redundant installer adapter wiring case * fix(ui): retire pending Template routing with composer scope * fix(templates): persist initialization intent before retained effects * fix(templates): format structured runtime application diagnostics * test(templates): remove redundant CLI adapter wiring assertions * fix(tests): preserve Template catalog fixture channel type * perf(ui): defer Template receipt and creation completion work * test(ui): reuse the Template detail fixture location * test(ui): await plugin detail modules before routing assertions
What Problem This Solves
Catalog Add detours through details and waits for installation before opening chat. A later failure can also strand an earlier draft when another agent is created.
User Impact
Add from a Template card and start drafting immediately. The same draft survives durable admission, creation of another agent and later setup failure. Explicit Retry setup reuses the original source, plan, consent and canonical session. Required reviews still precede apply; clicking the card itself still opens details.
Backend dependency #196392 landed as
caa978caae7a6a31370d1501bd35f16710bd9c1c. This UI PR now targets main. Landing is authorized after applicable review and CI qualification. Manual deployment/release is excluded. The direct catalog entry point incorporates #193117 with the newer chat-first flow.Why This Change Was Made
The application owns pending creation after the catalog closes, through the existing session-scoped composer and background registry, not a parallel ledger. Admission is tied to the exact request/canonical session independently of roster refresh. Duplicate/stale consent cannot start another apply after navigation, disconnect or Labs disposal. Installer cards render recorded outcomes and offer no duplicate installation action. Existing preview/feedback, overview, skeleton and alerts remain.
Evidence
0dac669feb9c6ba155686fba0d51c08f5986ed6c, incorporating the landed backend and current main. The preceding main-integration commitd69f74eaeb33resolved only the shared reader add/add conflict by preserving the reviewed UI reader. Its 39-file patch against landed main is byte-for-byte identical to the prior reviewed UI patch (SHA-256d1d25ea0116b475cd87e8d259a4ca69f276b4ad392194026eb4f6c68e77f019c). Independent integration review passed; Production UI source/config/lock/toolchain inputs are unchanged; the subsequent fixture-only cleanup is validated below. Follow-up commits repair the catalog fixture channel type and reduce ordinary Chat boot by deferring receipt grouping and creation completion into existing lazy owners. No bundle budget or test allowance was increased.d69f74eaeb33exposed a test-line overrun: total6,641,400 / ceiling6,641,398. The only follow-up reuses the identical initial route location in the detail fixture, removing eight duplicate setup lines without deleting assertions. All47 affected consumers, scoped type-aware lint, formatting and independent review pass. Official ratchet after the following routing fixture repair is total6,641,394 / ceiling6,641,398 (4slack); allowance888 and shared scalar unchanged..shellancestor for this PR's changed transition selectors. Both browser assertions passed in subsequent CI42916287733/a1 at09d2601; this does not establish their original cause. That run passed8436other tests and all753WebKit tests but failed the first plugin-routing render and exceeded the job deadline; it is not green.c5f7bb923d2b7a23a07db25eedbd5cf63d6d3fddfound zero actionable findings. The main integration is patch-identical and independently reviewed; it does not add a new product change. Hosted review is review-only because repair/merge lanes are retired. Independent reviews also pass both subsequent fixture-only repairs. Exact-head CI42920696722/a1 at0dac669feb9 passed with no failed or cancelled jobs; native UI landing qualification follows. Backend is merged.Before: card Add stops at details
After: editable pending chat
After admission: same draft retained
Mobile comparison