Skip to content

fix(agent): make mid-loop compaction timeout configurable#1151

Open
nguyenha935 wants to merge 2 commits into
nextlevelbuilder:mainfrom
nguyenha935:fix/compaction-timeout-config
Open

fix(agent): make mid-loop compaction timeout configurable#1151
nguyenha935 wants to merge 2 commits into
nextlevelbuilder:mainfrom
nguyenha935:fix/compaction-timeout-config

Conversation

@nguyenha935
Copy link
Copy Markdown

Summary

  • Add optional compaction.timeoutSeconds for mid-loop compaction LLM calls.
  • Increase the default compaction timeout from 30s to 120s for large sessions.
  • Expose the setting in agent defaults and per-agent advanced compaction UI.

Test Plan

  • docker run --rm -v "/root/.config/superpowers/worktrees/Goclaw/source-runtime:/src" -w /src golang:1.26-bookworm go test ./internal/agent/...
  • cd ui/web && pnpm build
  • Verified source-built VPS runtime health with curl -fsS http://127.0.0.1:18790/health.

mrgoonie and others added 2 commits May 4, 2026 16:36
…levelbuilder#1091) (nextlevelbuilder#1092)

* fix(discord): suppress pairing reply in groups without @mention

When `pairing` group policy is combined with `Require @mention`, the bot
posted a pairing code in response to every group message because
`checkGroupPolicy` ran before the mention gate.

Pre-compute the mention flag and pass it into `checkGroupPolicy`. When
RequireMention is enabled and the bot was not addressed, return silently
instead of triggering `sendPairingReply`.

DMs are unchanged — every DM is implicitly directed at the bot.

Fixes nextlevelbuilder#1091

* refactor(discord): drop issue ref from inline comment

---------

Co-authored-by: viettranx <viettranx@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants