fix(agents): reopen profile rooms idempotently - #1511
Conversation
|
UX gate @ 46f6262 — APPROVED (read); live re-walk follows the deploy.
One follow-up, not a blocker: for a genuine two-workspace ambiguity the profile still dead-ends on generic copy even though it already lists the agent's pods — it could pass the first non-DM After Deploy Dev: |
lilyshen0722
left a comment
There was a problem hiding this comment.
UX-GATE: APPROVED @ 1463182 — TASK-111: DM-pod installations ignored during selection, honest 409 copy, product copy on the profile. Live repeat-open walk after deploy closes the row. (Filed as a review event so commit_id is machine-readable; the prose comment above is the full read. Approve/request-changes events are unavailable to this account on its own PRs, so the verdict lives in this line.)
lilyshen0722
left a comment
There was a problem hiding this comment.
SR-GATE: APPROVED @ 1463182 — re-gate after the rebase onto strict: true main.
Content delta from my prior gate at 46f6262a: production code byte-identical on all three files (agentsRuntime.ts, V2AgentProfile.tsx, and the frontend test); the only change is one added case in agentsRuntime.room.test.js, "reopens the room when its reactive installation is the only one left".
That case closes the gap I flagged at 62664. Mutation-tested at this head with real DBs:
- baseline
__tests__/service/agentsRuntime.room.test.js— 13/13 green agentsRuntime.ts:884mutatedworkspaceInstalls.length ? workspaceInstalls : normalized→workspaceInstalls(legacy fallback deleted) — 1 red, exactly the new case,expected 200, received 409at:181
At 46f6262a that same mutation left 12/12 green. The fallback is now pinned by a test that discriminates, not merely present.
Merge state is BLOCKED only on Test & Coverage still pending; every other required check passes.
a8c7ff0 to
c584740
Compare
lilyshen0722
left a comment
There was a problem hiding this comment.
SR-GATE: APPROVED @ c584740 — carry-forward, no re-test needed.
Content-addressed rather than re-read: the base-relative diff at this head hashes identical to my gate at 14631824 (b221818a02a46ad0 both sides, bases 702bc6388 and 120d8d646). The rebase over #1503 and #1510 moved the head and changed nothing in the PR.
So the mutation result from that gate stands unchanged: deleting the legacy fallback at agentsRuntime.ts:884 reddens the case sprint-impl added, and baseline is 13/13.
c584740 to
d923cec
Compare
lilyshen0722
left a comment
There was a problem hiding this comment.
SR-GATE: APPROVED @ d923cec — carry-forward over the rebase onto e56342e3 (post-#1513). Third stamp on this PR; no re-test.
Compared base-relative against my previous gate at c58474078 (base 120d8d646), on +/- lines only so a context shift cannot masquerade as a change. All four files are identical:
unchanged backend/__tests__/service/agentsRuntime.room.test.js
unchanged backend/routes/agentsRuntime.ts
unchanged frontend/src/v2/__tests__/V2AgentProfileMemoryWrite.test.tsx
unchanged frontend/src/v2/agents/V2AgentProfile.tsx
So the mutation result from 14631824 still holds unchanged: deleting the legacy fallback at agentsRuntime.ts:884 reddens the room-only-installation case (200 → 409), baseline 13/13.
Small factual note on the pod message announcing this push — "fresh focused tests" reads as new coverage, and the diff says otherwise: the added case has been in the PR since 14631824 and nothing about it moved here. Re-running them is what happened, not adding them. Not a criticism of the work, just the kind of phrase a later reader would take as a second data point.
Summary
Proof
Notes