diff --git a/src/ui/App.tsx b/src/ui/App.tsx
index fde4e48..75695a4 100644
--- a/src/ui/App.tsx
+++ b/src/ui/App.tsx
@@ -1179,13 +1179,14 @@ export function App(props: { readonly session: T3Session; readonly config: Tui3C
) : null}
- {working && threadId && !draft ? : null}
+ {working && threadId && !draft && !pendingApproval ? : null}
{threadId || draft ? (
{pendingApproval && !draft ? (
-
- ) : (
- <>
+
+
+
+ ) : null}
- >
- )}
) : null}
diff --git a/test/app/app.test.tsx b/test/app/app.test.tsx
index 474b961..384891a 100644
--- a/test/app/app.test.tsx
+++ b/test/app/app.test.tsx
@@ -181,14 +181,15 @@ describe("live status", () => {
});
describe("approvals", () => {
- test("the request shows in the composer's place, with its buttons, and not in the timeline", async () => {
+ test("the request shows above the composer, with its buttons, and not in the timeline", async () => {
const app = await open({ session: fakeSession({ projection: withApproval() }) });
const frame = app.frame();
expect(frame).toContain("Command approval");
expect(frame).toContain("Deletes dist/ and rebuilds it.");
// Only the composer block names the command; its timeline row is hidden.
expect(frame.split("rm -rf dist && bun run build")).toHaveLength(2);
- expect(frame).not.toContain("Press i to type");
+ // The composer stays below it, so a message can still go with a decline.
+ expect(app.find("Command approval").y).toBeLessThan(app.find("gpt-5.4").y);
const approve = app.find("Approve");
await app.click(approve.x, approve.y);
expect(app.calls("respond").map((call) => call.args[2])).toEqual(["accept"]);