Fix formatting of 'Agent failed before reply' error messages
- Remove hardcoded period after error message to avoid double periods - Move 'Check gateway logs for details' to a new line for better readabilitymain
parent
a4e57d3ac4
commit
e6fdbae79b
|
|
@ -514,7 +514,7 @@ export async function runAgentTurnWithFallback(params: {
|
||||||
? "⚠️ Context overflow — prompt too large for this model. Try a shorter message or a larger-context model."
|
? "⚠️ Context overflow — prompt too large for this model. Try a shorter message or a larger-context model."
|
||||||
: isRoleOrderingError
|
: isRoleOrderingError
|
||||||
? "⚠️ Message ordering conflict - please try again. If this persists, use /new to start a fresh session."
|
? "⚠️ Message ordering conflict - please try again. If this persists, use /new to start a fresh session."
|
||||||
: `⚠️ Agent failed before reply: ${message}. Check gateway logs for details.`,
|
: `⚠️ Agent failed before reply: ${message}\nCheck gateway logs for details.`,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue