Run terminals and $EDITOR in a pane beside the conversation

ctrl+j opens the thread's T3 terminal in an embedded terminal that takes
the details column's place (or the conversation's on narrow terminals);
ctrl+g writes the message there and o on a changed file edits it. While
the pane has focus every key but ctrl+\ goes to its program. Full-screen
attach stays in the T picker and the palette.
This commit is contained in:
Callum Alpass committed 2026-11-03 02:53:53 +11:00
1 parent c0b7615590
commit 4ef243875f
10 files changed
+500 -61

No files matched your search

+9 -1
View File
@@ -41,6 +41,9 @@ export function fakeSession(
/** Git status for every folder; loading by default. */
readonly vcs?: unknown;
readonly results?: Record<string, unknown>;
/** The thread's terminals on the server, and what attaching to one streams. */
readonly terminals?: readonly unknown[];
readonly terminalEvents?: readonly unknown[];
readonly failures?: Record<string, string>;
} = {},
) {
@@ -58,7 +61,12 @@ export function fakeSession(
watchServerConfig: live({ status: "loading", config: null }),
watchServers: live({ status: "live", items: [] }),
watchAutomations: live({ status: "live", items: [] }),
watchTerminals: live({ status: "live", items: [] }),
watchTerminals: live({ status: "live", items: state.terminals ?? [] }),
attachTerminal: (input: unknown, onEvent: (event: unknown) => void) => {
calls.push({ method: "attachTerminal", args: [input] });
for (const event of state.terminalEvents ?? []) onEvent(event);
return () => calls.push({ method: "detachTerminal", args: [] });
},
watchVcs: (_cwd: string, listener: (value: unknown) => void) => live(state.vcs ?? { status: "loading", local: null, remote: null })(listener),
};
const session = new Proxy(known, {