openclaw-vainplex/src/auto-reply/reply
Lauren Rosenberg 576485b0c9 fix: return user-facing error when session reset after compaction failure
Previously, when auto-compaction failed due to context overflow, the system
would reset the session and silently continue the execution loop without
sending any response to the user. This made it appear as if messages were
being ignored.

This change ensures users receive a clear error message explaining that
the context limit was exceeded and the conversation has been reset,
consistent with how role ordering conflicts are already handled.

Fixes the silent failure case where message + compaction exceeds context limits.
2026-01-18 18:16:20 +00:00
..
exec chore(gate): fix lint and protocol 2026-01-18 06:31:02 +00:00
queue fix(auth): preserve auto-pin preference 2026-01-18 08:22:55 +00:00
abort.test.ts refactor(security): harden CommandAuthorized plumbing 2026-01-17 10:19:34 +00:00
abort.ts refactor(security): harden CommandAuthorized plumbing 2026-01-17 10:19:34 +00:00
agent-runner-execution.ts fix: return user-facing error when session reset after compaction failure 2026-01-18 18:16:20 +00:00
agent-runner-helpers.ts feat: extend verbose tool feedback 2026-01-17 05:33:39 +00:00
agent-runner-memory.ts fix(auth): preserve auto-pin preference 2026-01-18 08:22:55 +00:00
agent-runner-payloads.ts fix: send text between tool calls to channel immediately 2026-01-15 20:55:52 -08:00
agent-runner-utils.test.ts refactor: prune legacy group prefixes 2026-01-17 08:47:25 +00:00
agent-runner-utils.ts feat: add cross-context messaging resolver 2026-01-17 03:17:13 +00:00
agent-runner.block-streaming.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
agent-runner.claude-cli.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
agent-runner.heartbeat-typing.runreplyagent-typing-heartbeat.resets-corrupted-gemini-sessions-deletes-transcripts.test.ts fix: sanitize user-facing errors and strip final tags 2026-01-16 03:01:23 +00:00
agent-runner.heartbeat-typing.runreplyagent-typing-heartbeat.retries-after-compaction-failure-by-resetting-session.test.ts fix: delete transcripts on role ordering reset 2026-01-16 09:20:16 +00:00
agent-runner.heartbeat-typing.runreplyagent-typing-heartbeat.signals-typing-block-replies.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
agent-runner.heartbeat-typing.runreplyagent-typing-heartbeat.signals-typing-normal-runs.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
agent-runner.heartbeat-typing.runreplyagent-typing-heartbeat.still-replies-even-if-session-reset-fails.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
agent-runner.memory-flush.runreplyagent-memory-flush.increments-compaction-count-flush-compaction-completes.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
agent-runner.memory-flush.runreplyagent-memory-flush.runs-memory-flush-turn-updates-session-metadata.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
agent-runner.memory-flush.runreplyagent-memory-flush.skips-memory-flush-cli-providers.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
agent-runner.memory-flush.runreplyagent-memory-flush.skips-memory-flush-sandbox-workspace-is-read.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
agent-runner.memory-flush.runreplyagent-memory-flush.uses-configured-prompts-memory-flush-runs.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
agent-runner.messaging-tools.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
agent-runner.reasoning-tags.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
agent-runner.response-usage-footer.test.ts test(usage): cover modes and full footer 2026-01-18 06:01:25 +00:00
agent-runner.ts refactor(usage): centralize responseUsage mode 2026-01-18 06:01:25 +00:00
audio-tags.test.ts refactor: consolidate reply/media helpers 2026-01-10 02:41:16 +01:00
audio-tags.ts refactor: consolidate reply/media helpers 2026-01-10 02:41:16 +01:00
bash-command.ts fix(utils): share clamp helpers 2026-01-18 16:11:43 +00:00
block-reply-coalescer.test.ts fix(auto-reply): coalesce block replies and document streaming toggles (#536) (thanks @mcinteerj) 2026-01-09 18:19:55 +00:00
block-reply-coalescer.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
block-reply-pipeline.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
block-streaming.ts feat: load channel plugins 2026-01-15 02:42:44 +00:00
body.ts refactor: harden session store updates 2026-01-15 23:41:34 +00:00
commands-bash.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
commands-compact.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
commands-config-writes.test.ts style: apply oxfmt fixes 2026-01-15 01:53:14 +00:00
commands-config.ts feat(config): gate channel config writes 2026-01-15 01:41:15 +00:00
commands-context-report.ts fix: keep bootstrap files in context report 2026-01-18 06:30:01 +00:00
commands-context.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
commands-core.ts feat(slash-commands): usage footer modes 2026-01-18 05:35:35 +00:00
commands-info.ts refactor: extend media understanding 2026-01-17 07:17:13 +00:00
commands-session.ts refactor(usage): centralize responseUsage mode 2026-01-18 06:01:25 +00:00
commands-status.ts feat(slash-commands): usage footer modes 2026-01-18 05:35:35 +00:00
commands-subagents.ts feat(slash-commands): usage footer modes 2026-01-18 05:35:35 +00:00
commands-types.ts feat: add internal hooks system 2026-01-17 01:31:57 +00:00
commands.test.ts feat(slash-commands): usage footer modes 2026-01-18 05:35:35 +00:00
commands.ts refactor(auto-reply): split reply pipeline 2026-01-14 09:11:16 +00:00
config-commands.test.ts style: fix biome formatting 2026-01-10 02:11:43 +00:00
config-commands.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
config-value.ts style: fix biome formatting 2026-01-10 02:11:43 +00:00
debug-commands.test.ts feat: add /debug runtime overrides 2026-01-09 16:55:16 +01:00
debug-commands.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
directive-handling.auth.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
directive-handling.fast-lane.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
directive-handling.impl.ts chore(gate): fix lint and protocol 2026-01-18 06:31:02 +00:00
directive-handling.model-picker.ts fix(model-picker): list each provider/model combo separately (#970) 2026-01-15 22:20:11 +00:00
directive-handling.model.ts fix(model-picker): list each provider/model combo separately (#970) 2026-01-15 22:20:11 +00:00
directive-handling.parse.ts feat: add /exec session overrides 2026-01-18 06:12:54 +00:00
directive-handling.persist.ts feat: add /exec session overrides 2026-01-18 06:12:54 +00:00
directive-handling.queue-validation.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
directive-handling.shared.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
directive-handling.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
directives.ts feat: add /exec session overrides 2026-01-18 06:12:54 +00:00
dispatch-from-config.test.ts refactor(security): harden CommandAuthorized plumbing 2026-01-17 10:19:34 +00:00
dispatch-from-config.ts refactor(security): harden CommandAuthorized plumbing 2026-01-17 10:19:34 +00:00
exec.ts feat: add /exec session overrides 2026-01-18 06:12:54 +00:00
followup-runner.compaction.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
followup-runner.messaging-tools.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
followup-runner.ts fix(auth): preserve auto-pin preference 2026-01-18 08:22:55 +00:00
get-reply-directives-apply.ts feat: add /exec session overrides 2026-01-18 06:12:54 +00:00
get-reply-directives-utils.ts feat: add /exec session overrides 2026-01-18 06:12:54 +00:00
get-reply-directives.ts chore(gate): fix lint and protocol 2026-01-18 06:31:02 +00:00
get-reply-inline-actions.ts refactor: extend media understanding 2026-01-17 07:17:13 +00:00
get-reply-run.ts fix(auth): preserve auto-pin preference 2026-01-18 08:22:55 +00:00
get-reply.ts feat: add /exec session overrides 2026-01-18 06:12:54 +00:00
groups.test.ts refactor: prune legacy group prefixes 2026-01-17 08:47:25 +00:00
groups.ts refactor: prune legacy group prefixes 2026-01-17 08:47:25 +00:00
history.test.ts refactor: prune legacy group targets 2026-01-17 09:01:47 +00:00
history.ts fix: scope history injection to pending-only 2026-01-16 23:52:42 +00:00
inbound-context.test.ts refactor(security): harden CommandAuthorized plumbing 2026-01-17 10:19:34 +00:00
inbound-context.ts refactor(security): harden CommandAuthorized plumbing 2026-01-17 10:19:34 +00:00
inbound-dedupe.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
inbound-dedupe.ts feat: add matrix channel plugin 2026-01-15 08:40:37 +00:00
inbound-sender-meta.test.ts refactor: share inbound envelope label helper 2026-01-17 08:51:31 +00:00
inbound-sender-meta.ts fix: tidy iMessage/Signal sender envelopes (#1080) - thanks @tyler6204 2026-01-17 08:29:54 +00:00
inbound-text.test.ts style: oxfmt format 2026-01-17 05:48:56 +00:00
inbound-text.ts fix: finalize inbound contexts 2026-01-17 05:06:39 +00:00
memory-flush.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
memory-flush.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
mentions.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
mentions.ts feat: load channel plugins 2026-01-15 02:42:44 +00:00
model-selection.ts feat: sticky auth profile rotation + usage headers 2026-01-16 00:25:49 +00:00
normalize-reply.ts fix: sanitize user-facing errors and strip final tags 2026-01-16 03:01:23 +00:00
provider-dispatcher.ts refactor(security): harden CommandAuthorized plumbing 2026-01-17 10:19:34 +00:00
queue.collect-routing.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
queue.ts fix: hard-abort clears queues on /stop 2026-01-16 21:15:25 +00:00
reply-directives.ts refactor: unify inline directives and media fetch 2026-01-10 03:01:04 +01:00
reply-dispatcher.test.ts feat: add provider-specific tool policies 2026-01-15 03:55:20 +00:00
reply-dispatcher.ts chore: format reply dispatcher 2026-01-15 05:31:03 +00:00
reply-elevated.ts feat: load channel plugins 2026-01-15 02:42:44 +00:00
reply-inline.ts feat(slash-commands): usage footer modes 2026-01-18 05:35:35 +00:00
reply-payloads.ts refactor: centralize target normalization 2026-01-17 06:45:11 +00:00
reply-reference.test.ts fix: align reply threading refs 2026-01-12 23:41:40 +00:00
reply-reference.ts fix: align reply threading refs 2026-01-12 23:41:40 +00:00
reply-tags.ts refactor: unify inline directives and media fetch 2026-01-10 03:01:04 +01:00
reply-threading.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
reply-threading.ts feat: load channel plugins 2026-01-15 02:42:44 +00:00
response-prefix-template.test.ts feat: add dynamic template variables to messages.responsePrefix (#923) 2026-01-14 23:05:08 -05:00
response-prefix-template.ts feat: add dynamic template variables to messages.responsePrefix (#923) 2026-01-14 23:05:08 -05:00
route-reply.test.ts refactor: route channel runtime via plugin api 2026-01-18 11:01:16 +00:00
route-reply.ts feat: mirror delivered outbound messages (#1031) 2026-01-17 02:03:18 +00:00
session-reset-group.test.ts fix: harden whatsapp command auth 2026-01-15 07:54:39 +00:00
session-updates.test.ts test: make session update timestamp UTC 2026-01-17 17:45:14 +00:00
session-updates.ts fix: repair CI formatting + launchd test 2026-01-16 03:52:47 +00:00
session.sender-meta.test.ts chore: format + regenerate protocol 2026-01-17 03:40:49 +00:00
session.test.ts refactor(session): centralize thread reset detection 2026-01-18 06:55:04 +00:00
session.ts refactor(session): centralize thread reset detection 2026-01-18 06:55:04 +00:00
stage-sandbox-media.ts fix: browser remote tab ops harden (#1057) (thanks @mukhtharcm) 2026-01-17 00:57:35 +00:00
subagents-utils.test.ts feat(slash-commands): usage footer modes 2026-01-18 05:35:35 +00:00
subagents-utils.ts feat(slash-commands): usage footer modes 2026-01-18 05:35:35 +00:00
test-ctx.ts style: oxfmt 2026-01-17 10:26:08 +00:00
test-helpers.ts fix(typing): keep tool-start ttl mode-safe (#452, thanks @thesash) 2026-01-08 06:18:35 +00:00
typing-mode.test.ts fix: start typing on message start 2026-01-13 04:33:24 +00:00
typing-mode.ts fix: start typing on message start 2026-01-13 04:33:24 +00:00
typing.test.ts feat: add typing mode controls 2026-01-07 21:58:54 +00:00
typing.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00