devez-vibe 1.6.51 → 1.6.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/dvz.exe
CHANGED
|
Binary file
|
|
@@ -3149,7 +3149,15 @@ async function dispatch(method, params = {}) {
|
|
|
3149
3149
|
const source = liveSessionId(params.sessionId);
|
|
3150
3150
|
const forked = await forkSession(source, { dir: await readableCwd(source, params.cwd) });
|
|
3151
3151
|
const id = forked.sessionId || forked;
|
|
3152
|
-
|
|
3152
|
+
// A fork continues the thread it branched from, so the parent's own model and
|
|
3153
|
+
// effort outrank the host's fallback: without this the new session opens on
|
|
3154
|
+
// the model default instead of what the parent was running.
|
|
3155
|
+
const parent = sessions.get(source);
|
|
3156
|
+
const { session, account, usage } = await createSession({
|
|
3157
|
+
...params,
|
|
3158
|
+
model: stripClaudeModel(params.model) ? params.model : (parent?.model || params.fallbackModel || params.model),
|
|
3159
|
+
effort: params.effort || parent?.effort || params.fallbackEffort,
|
|
3160
|
+
}, id);
|
|
3153
3161
|
return {
|
|
3154
3162
|
id,
|
|
3155
3163
|
thread: { id, turns: [] },
|