@dreb/coding-agent 2.63.0 → 2.64.0

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.
@@ -2322,16 +2322,11 @@ export class AgentSession {
2322
2322
  if (lastMsg?.role === "assistant" && lastMsg.stopReason === "error") {
2323
2323
  this.agent.replaceMessages(messages.slice(0, -1));
2324
2324
  }
2325
- setTimeout(() => {
2326
- this.agent.continue().catch((err) => {
2327
- // Agent failed to continue after auto-compaction — surface to session
2328
- this.warnInSession(`Agent failed to continue after compaction: ${err instanceof Error ? err.message : String(err)}`);
2329
- });
2330
- }, 100);
2331
2325
  }
2332
- else if (this.agent.hasQueuedMessages()) {
2333
- // Auto-compaction can complete while follow-up/steering/custom messages are waiting.
2334
- // Kick the loop so queued messages are actually delivered.
2326
+ // Check the explicit setting first so the continuation decision does not
2327
+ // consult overflow-retry or queued-message state when it is enabled.
2328
+ const shouldContinue = settings.continueAfterAutoCompaction || willRetry || this.agent.hasQueuedMessages();
2329
+ if (shouldContinue) {
2335
2330
  setTimeout(() => {
2336
2331
  this.agent.continue().catch((err) => {
2337
2332
  // Agent failed to continue after auto-compaction — surface to session