Skip to content
Closed
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
2 changes: 1 addition & 1 deletion apps/web/src/components/chat/ComposerPrimaryActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const ComposerPrimaryActions = memo(function ComposerPrimaryActions({
pendingAction,
isRunning,
canInterrupt,
followUpBehavior = "steer",
followUpBehavior = "queue",
alternateShortcutLabel = null,
showPlanFollowUpPrompt,
promptHasText,
Expand Down
8 changes: 4 additions & 4 deletions packages/client-runtime/src/state/composerDispatch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ describe("resolveComposerDispatchMode", () => {
expect(resolveComposerDispatchMode({ running: false, alternateModifier: false })).toBe("auto");
});

it("steers by default and reserves Mod+Enter for queueing while running", () => {
expect(resolveComposerDispatchMode({ running: true, alternateModifier: false })).toBe("steer");
expect(resolveComposerDispatchMode({ running: true, alternateModifier: true })).toBe("queue");
it("queues by default and reserves Mod+Enter for steering while running", () => {
expect(resolveComposerDispatchMode({ running: true, alternateModifier: false })).toBe("queue");
expect(resolveComposerDispatchMode({ running: true, alternateModifier: true })).toBe("steer");
});

it("queues as the alternate action when restarting is the default", () => {
Expand Down Expand Up @@ -67,6 +67,6 @@ describe("resolveComposerDispatchMode", () => {
it("names the alternate action so the affordance can be labelled", () => {
expect(alternateComposerDispatchAction("queue")).toBe("steer");
expect(alternateComposerDispatchAction("steer")).toBe("queue");
expect(alternateComposerDispatchAction()).toBe("queue");
expect(alternateComposerDispatchAction()).toBe("steer");
});
});
2 changes: 1 addition & 1 deletion packages/client-runtime/src/state/composerDispatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function resolveComposerDispatchMode(input: {
readonly activeTurnDefault?: ActiveTurnComposerAction;
}): ComposerDispatchMode {
if (!input.running) return "auto";
const defaultAction = input.activeTurnDefault ?? "steer";
const defaultAction = input.activeTurnDefault ?? "queue";
if (input.alternateModifier) return defaultAction === "queue" ? "steer" : "queue";
return defaultAction;
}
Expand Down
Loading