Keep agent stream controls clickable under the scroll button (#2007)

* fix(app): keep stream controls clickable under scroll button

The full-width animated overlay won browser hit testing even outside the circular control. Keep positioning on a pass-through container and animate only the button-sized child.

* test(app): preserve scroll hit-test diagnostics

* test(app): align scroll hit-test fixture deterministically

* test(server): include OpenCode message IDs in subagent assertions
This commit is contained in:
Mohamed Boudra
2026-07-13 04:30:02 +08:00
committed by GitHub
parent 2658132384
commit a788a0f843
4 changed files with 153 additions and 17 deletions
@@ -2466,7 +2466,11 @@ describe("OpenCode provider subagent contract", () => {
expect(events).toContainEqual(
expect.objectContaining({
type: "timeline",
item: { type: "assistant_message", text: "child says hi" },
item: {
type: "assistant_message",
text: "child says hi",
messageId: "msg_assistant",
},
}),
);
});
@@ -2809,7 +2813,11 @@ describe("OpenCode provider subagent contract", () => {
event: {
type: "timeline",
id: "ses_child_background",
item: { type: "assistant_message", text: "Background findings." },
item: {
type: "assistant_message",
text: "Background findings.",
messageId: "msg_child_background",
},
},
});
expect(events.at(-1)).toEqual({
@@ -2998,6 +3006,7 @@ describe("OpenCode provider subagent contract", () => {
item: {
type: "assistant_message",
text: "Persisted child result.",
messageId: "msg_child_history",
},
timestamp: "1970-01-01T00:00:02.000Z",
},
@@ -3075,6 +3084,7 @@ describe("OpenCode provider subagent contract", () => {
item: {
type: "assistant_message",
text: "Hydration did not lose this.",
messageId: "msg_child_hydrating",
},
}),
}),