Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(claude): a thread with background work no longer refuses messages sent from another client #15473

Closedvitalyiegorov(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/15473/headopened View on GitHub

Showing 2 changed files with 12 additions and 1 deletion.

x
0 of 2 viewed, 2 left
9 additions and 0 deletionsapps/server/src/claudeModelOptions.test.tsModified
View file
@@ -40,6 +40,15 @@
).toEqual({ fastMode: false });
});
​
+ it("treats unset fast mode as Normal so clients that omit it reuse the same query", () => {
+ const unset = compileClaudeModelSelection(selection("claude-opus-4-6", []));
+ const normal = compileClaudeModelSelection(
+ selection("claude-opus-4-6", [{ id: "fastMode", value: false }]),
+ );
+ expect(unset.settings).toEqual({ fastMode: false });
+ expect(unset.queryIdentity).toBe(normal.queryIdentity);
+ });
+​
it("uses the model default SDK effort alongside prompt-injected effort", () => {
expect(
compileClaudeModelSelection(
3 additions and 1 deletionapps/server/src/claudeModelOptions.tsModified
View file
@@ -36,8 +36,10 @@
const rawEffort = getModelSelectionStringOptionValue(selection, "effort");
const resolvedEffort = resolveClaudeCatalogEffort(catalog, selection.model, rawEffort);
const effort = normalizeClaudeCatalogEffort(catalog, resolvedEffort, selection.model);
+ // Unset means Normal, as the web composer sends it. Keeping the two apart
+ // would make a live process look reconfigured when only the client changed.
const fastMode = supportsBoolean("fastMode")
- ? getModelSelectionBooleanOptionValue(selection, "fastMode")
+ ? (getModelSelectionBooleanOptionValue(selection, "fastMode") ?? false)
: undefined;