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
487 changes: 487 additions & 0 deletions research/docs/2026-02-21-workflow-sdk-inline-mode-research.md

Large diffs are not rendered by default.

370 changes: 370 additions & 0 deletions specs/workflow-sdk-inline-mode.md

Large diffs are not rendered by default.

264 changes: 195 additions & 69 deletions src/ui/chat.tsx

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/ui/commands/builtin-commands.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function createMockContext(overrides?: Partial<CommandContext>): CommandContext
sendSilentMessage: () => {},
spawnSubagent: async () => ({ success: true, output: "" }),
streamAndWait: async () => ({ content: "", wasInterrupted: false }),
waitForUserInput: async () => "",
clearContext: async () => {},
setTodoItems: () => {},
setRalphSessionDir: () => {},
Expand Down
8 changes: 8 additions & 0 deletions src/ui/commands/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export interface StreamResult {
content: string;
/** Whether the stream was interrupted (e.g., Ctrl+C / ESC) */
wasInterrupted: boolean;
/** Whether the workflow was cancelled (double Ctrl+C) */
wasCancelled?: boolean;
}

/**
Expand Down Expand Up @@ -124,6 +126,12 @@ export interface CommandContext {
* updates are written to tasks.json (prevents sub-agent overwrites).
*/
setRalphTaskIds: (ids: Set<string>) => void;
/**
* Wait for the user to type and submit a prompt.
* Used by workflows after a stream interruption (Ctrl+C) to yield control
* to the user and receive their next direction.
*/
waitForUserInput: () => Promise<string>;
/**
* Update workflow state from a command handler.
*/
Expand Down
Loading
Loading