perf: cut background polling and log noise
- Codex usage poll: run the repo-pinned CLI (0.159.3) instead of a global 0.128 install, hold the account lease while polling (skip if a run holds it, so the poller cannot rotate a token under a live reviewer session), and poll every 5 min instead of every minute (~1,440 app-server spawns a day). - Claude usage poll: 5 min instead of 1 min. The 1-minute cadence only served the auto-paired-mode gate, which is not wired into the runtime; it drew ~32 HTTP 429s a day. - Dashboard duplicate cleanup: was a 2 s poll fetching 100 messages (~43k Discord REST calls a day) plus a fetch after every edit. Clean up only when a fresh status message is posted or on first render, with a 5 min sweep. - Logging: one line per event and no ANSI colors outside a TTY (events were split into ~11 journal lines). Progress-edit audits, Discord progress edits, streamed-activity and per-bucket Codex usage logs move to debug; sends, agent output and the usage summary stay at info. - Two tests wrote under the real data/ipc and left fake room folders that the live 1 s IPC watcher kept polling; they now clean up after themselves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1697,7 +1697,7 @@ describe('runAgentForGroup room memory', () => {
|
||||
onOutput: async () => {},
|
||||
});
|
||||
|
||||
expect(logger.info).toHaveBeenCalledWith(
|
||||
expect(logger.debug).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
provider: 'claude',
|
||||
outputPhase: 'progress',
|
||||
|
||||
Reference in New Issue
Block a user