Skip to content

Commit f36cb1a

Browse files
committed
fix(clients): default follow-up messages to steer
Default follow-ups to Steer on web, desktop, and mobile while preserving saved preferences. Keep Queue available as the alternate action and update the existing settings test.
1 parent ae9fee9 commit f36cb1a

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎apps/mobile/src/lib/followUpBehavior.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ import type { ActiveTurnComposerAction } from "@t3tools/client-runtime/state/com
1010
*/
1111
export type FollowUpBehavior = Extract<ActiveTurnComposerAction, "queue" | "steer">;
1212

13-
export const DEFAULT_FOLLOW_UP_BEHAVIOR: FollowUpBehavior = "queue";
13+
export const DEFAULT_FOLLOW_UP_BEHAVIOR: FollowUpBehavior = "steer";

‎packages/contracts/src/settings.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,8 +674,8 @@ describe("ClientSettings send shortcut", () => {
674674
});
675675

676676
describe("ClientSettings follow-up behavior", () => {
677-
it("defaults to queue and accepts either behavior", () => {
678-
expect(decodeClientSettings({}).followUpBehavior).toBe("queue");
677+
it("defaults to steer and accepts either behavior", () => {
678+
expect(decodeClientSettings({}).followUpBehavior).toBe("steer");
679679
for (const followUpBehavior of ["queue", "steer"]) {
680680
expect(decodeClientSettings({ followUpBehavior }).followUpBehavior).toBe(followUpBehavior);
681681
expect(decodeClientSettingsPatch({ followUpBehavior }).followUpBehavior).toBe(

‎packages/contracts/src/settings.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ export const ClientSettingsSchema = Schema.Struct({
457457
Schema.withDecodingDefault(Effect.succeed("enter")),
458458
),
459459
followUpBehavior: Schema.Literals(["queue", "steer"]).pipe(
460-
Schema.withDecodingDefault(Effect.succeed("queue")),
460+
Schema.withDecodingDefault(Effect.succeed("steer")),
461461
),
462462
proactivePanelsEnabled: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(false))),
463463
showSkillsInSlashMenu: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(true))),

0 commit comments

Comments
 (0)