Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
142 changes: 71 additions & 71 deletions apps/ade-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/ade-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"test": "vitest run"
},
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.3.201",
"@anthropic-ai/claude-agent-sdk": "^0.3.202",
"@anthropic-ai/sdk": "^0.103.0",
"@cursor/sdk": "^1.0.13",
"@factory/droid-sdk": "^0.2.0",
Expand Down
77 changes: 77 additions & 0 deletions apps/ade-cli/src/tuiClient/__tests__/RightPane.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function chatInfo(overrides: Partial<ChatInfoSnapshot> = {}): ChatInfoSnapshot {
planExplanation: null,
planStreamingText: null,
todos: [],
scheduledWork: [],
pr: null,
resumableTerminal: false,
...overrides,
Expand Down Expand Up @@ -254,6 +255,82 @@ describe("RightPane chat info", () => {
expect(frame).toContain("/pr for details");
});

it("renders scheduled Claude wakeups in chat info without mixing them into the subagent roster", () => {
const result = render(
<RightPane
content={{
kind: "chat-info",
info: chatInfo({
scheduledWork: [
{
id: "wake-1",
kind: "wakeup",
status: "scheduled",
origin: "schedule_wakeup",
title: "Check the nightly build",
summary: null,
prompt: "Look for CI failures",
reason: "after CI starts",
nextRunAt: "2026-07-08T04:00:00.000Z",
recurring: false,
durable: true,
sourceToolUseId: "toolu_1",
turnId: "turn-1",
createdAt: "2026-07-07T12:00:00.000Z",
updatedAt: "2026-07-07T12:00:00.000Z",
},
],
}),
}}
focused
width={80}
/>,
);
const frame = stripAnsi(result.lastFrame() ?? "");

expect(frame).toContain("SCHEDULE");
expect(frame).toContain("Check the nightly build");
expect(frame).toContain("wakeup · scheduled");
expect(frame).toContain("after CI starts");
expect(frame).toContain("CHATS");
expect(frame).toContain("no subagents yet");
});

it("caps scheduled work rows in narrow chat info panes", () => {
const scheduledWork: ChatInfoSnapshot["scheduledWork"] = Array.from({ length: 7 }, (_, index) => {
const ordinal = String(index + 1).padStart(2, "0");
return {
id: `wake-${ordinal}`,
kind: "wakeup",
status: "scheduled",
origin: "schedule_wakeup",
title: `Wakeup ${ordinal} with a very long title that must fit`,
summary: "A long summary that should be clipped before it can widen the pane",
reason: "scheduled review",
recurring: false,
durable: true,
createdAt: "2026-07-07T12:00:00.000Z",
updatedAt: `2026-07-07T12:0${index}:00.000Z`,
};
});
const result = render(
<RightPane
content={{ kind: "chat-info", info: chatInfo({ scheduledWork }) }}
focused
width={44}
/>,
);
const frame = stripAnsi(result.lastFrame() ?? "");
const longestLine = Math.max(...frame.split("\n").map((line) => line.length));

expect(frame).toContain("SCHEDULE");
expect(frame).toContain("Wakeup 01");
expect(frame).toContain("Wakeup 05");
expect(frame).not.toContain("Wakeup 06");
expect(frame).toContain("↓ 2 more");
expect(longestLine).toBeLessThanOrEqual(44);
});

it("renders the plan explanation under the plan steps when present", () => {
const result = render(
<RightPane
Expand Down
Loading