oficina / equipo Public

Keep Stop visible when the undo toast resizes the composer

Paul Campbell pushed by paul@keymail.dev cd9d310eea1f336baeaf5b858e0501438652cbb4 parent d70efa8
3 files changed, +22 −24
  • docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md +17 −22
  • internal/equipo/static/chat-stream.js +4 −1
  • internal/thintest/roster_browser_test.go +1 −1

CI passed — run details

diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
index 5e69a9de..c497a14f 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
@@ -6616,6 +6616,23 @@ records remain unchanged.
| `roster.copy_done` | Continuing without Copy. | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
| `roster.stopping` | Stopping… | C · Roster conversation | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.question` | Question | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.decision` | Decision | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.checks_passed` | Passed | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.checks_failed` | Failed | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.checks_none` | No checks found | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.checks_cannot_run` | Can’t run here | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.checks_running` | Running | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.review_approve` | Approved | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.review_changes_requested` | Changes requested | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.review_running` | Reviewing | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.copy_budget` | Copy cannot review all these strings within this task’s token allowance. Ask the coordinator to reduce the scope, or continue without Copy. | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.checks_needs_macos` | Needs macOS | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.checks_needs_network` | Needs network access | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.checks_timeout` | The checks did not finish in time. | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.checks_unavailable` | This runner cannot run the checks. | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+| `roster.checks_exit` | %s, exit code %d | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
+
## Task 21
Status: DONE_WITH_CONCERNS. Offline 3b acceptance, the complete person API contract
@@ -7716,25 +7733,3 @@ existing race in the Codex reading fixture: the probe could stop the fake CLI
after its answer but before its marker write. The fixture now writes its
marker before answering. The failed hosted test is the reproduction; the
same targeted test passes repeatedly after the ordering fix.
-
-
-Roster review fixes, 2026-11-14.
-
-| Key | Exact text | Context | Status |
-| --- | --- | --- | --- |
-| `roster.question` | Question | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
-| `roster.decision` | Decision | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
-| `roster.checks_passed` | Passed | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
-| `roster.checks_failed` | Failed | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
-| `roster.checks_none` | No checks found | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
-| `roster.checks_cannot_run` | Can’t run here | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
-| `roster.checks_running` | Running | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
-| `roster.review_approve` | Approved | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
-| `roster.review_changes_requested` | Changes requested | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
-| `roster.review_running` | Reviewing | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
-| `roster.copy_budget` | Copy cannot review all these strings within this task’s token allowance. Ask the coordinator to reduce the scope, or continue without Copy. | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
-| `roster.checks_needs_macos` | Needs macOS | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
-| `roster.checks_needs_network` | Needs network access | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
-| `roster.checks_timeout` | The checks did not finish in time. | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
-| `roster.checks_unavailable` | This runner cannot run the checks. | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
-| `roster.checks_exit` | %s, exit code %d | C · Roster review fixes | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14) |
diff --git a/internal/equipo/static/chat-stream.js b/internal/equipo/static/chat-stream.js
index 1555232d..18acd330 100644
--- a/internal/equipo/static/chat-stream.js
+++ b/internal/equipo/static/chat-stream.js
@@ -1097,7 +1097,10 @@
if (stub && toast) {
toast.replaceChildren(document.createTextNode(root.dataset.asideLabel), stub.querySelector("form").cloneNode(true));
toast.hidden = false;
- clearTimeout(toastTimer); toastTimer = setTimeout(function () { toast.hidden = true; }, 7000);
+ // Re-pin before the smaller scroll area can report a scroll
+ // event and clear following. Stop stays above the composer.
+ scroll();
+ clearTimeout(toastTimer); toastTimer = setTimeout(function () { toast.hidden = true; scroll(); }, 7000);
var undo = stub.querySelector("button"); if (undo) undo.focus({preventScroll:true});
}
} else if (body.get("aside") === "false") {
diff --git a/internal/thintest/roster_browser_test.go b/internal/thintest/roster_browser_test.go
index a1625e05..c14bc423 100644
--- a/internal/thintest/roster_browser_test.go
+++ b/internal/thintest/roster_browser_test.go
@@ -62,7 +62,7 @@ func TestBrowserRosterSetAside(t *testing.T) {
p.wait(`document.querySelector('[equipo-roster-toast] [data-aside-undo]')`, "toast undo")
p.check(`(()=>{const s=document.querySelector('[equipo-aside-stub]');return parseFloat(getComputedStyle(s).fontSize)<=14 && s.querySelector('[data-aside-title]') && s.getBoundingClientRect().height<=64})()`, "aside is a full question instead of a compact stub")
p.check(`(()=>{const t=document.querySelector('[equipo-roster-toast]'),c=document.querySelector('#chat-composer');return t.getBoundingClientRect().left>=c.getBoundingClientRect().left && t.getBoundingClientRect().bottom<=c.getBoundingClientRect().bottom})()`, "toast outside composer column")
- p.check(`(()=>{const t=document.querySelector('[equipo-roster-toast]').getBoundingClientRect(),b=document.querySelector('[data-turn-stop]')?.getBoundingClientRect();return !b || b.bottom<=t.top || b.top>=t.bottom})()`, "toast covers Stop")
+ p.check(`(()=>{const t=document.querySelector('[equipo-roster-toast]').getBoundingClientRect(),b=document.querySelector('[data-turn-stop]')?.getBoundingClientRect();return !b || (b.bottom<=t.top && b.bottom<=document.querySelector('[equipo-scroll]').getBoundingClientRect().bottom)})()`, "toast covers Stop")
p.shot(fmt.Sprintf("roster-aside-%d-%s", width, scheme))
p.open("/conversation")
p.wait(`document.querySelector('`+card+` [equipo-aside-stub]')`, "stub after reload")