Fix resume cursor dropped on effort change and simplify redundant tool classification
- Preserve resumeCursor when shouldRestartForModelOptionsChange triggers a
restart, matching the behavior of runtimeModeChanged. Effort/model-option
changes are session-level config hints and don't affect conversation
compatibility.
- Simplify classifyToolItemType: remove conditions in the second if-block
that are already covered by the earlier normalized.includes('agent') check,
leaving only the unique normalized === 'task' condition.
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
f98679d217
commit
63ff52e33a
2 files changed
+2
-7
No files matched your search
@@ -311,7 +311,7 @@ const make = Effect.gen(function* () {
|
||||
}
|
||||
|
||||
const resumeCursor =
|
||||
providerChanged || shouldRestartForModelChange || shouldRestartForModelOptionsChange
|
||||
providerChanged || shouldRestartForModelChange
|
||||
? undefined
|
||||
: (activeSession?.resumeCursor ?? undefined);
|
||||
yield* Effect.logInfo("provider command reactor restarting provider session", {
|
||||
|
||||
@@ -238,12 +238,7 @@ function classifyToolItemType(toolName: string): CanonicalItemType {
|
||||
if (normalized.includes("agent")) {
|
||||
return "collab_agent_tool_call";
|
||||
}
|
||||
if (
|
||||
normalized === "task" ||
|
||||
normalized === "agent" ||
|
||||
normalized.includes("subagent") ||
|
||||
normalized.includes("sub-agent")
|
||||
) {
|
||||
if (normalized === "task") {
|
||||
return "collab_agent_tool_call";
|
||||
}
|
||||
if (
|
||||
|
||||
Reference in new issue
Block a user