Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: export Claude low-priority retry delay

[._.]/ Adam Eivy981702aeb495
diff --git a/server/lib/tuiHandshake.js b/server/lib/tuiHandshake.js
index 9c68aa50b4..2e6c78c1b2 100644
--- a/server/lib/tuiHandshake.js
+++ b/server/lib/tuiHandshake.js
@@ -27,6 +27,9 @@ import { detectTuiRetryBanner, describeTuiRetryStall } from './aiToolkit/errorDe
export const READY_POLL_INTERVAL_MS = 300;
export const READY_IDLE_THRESHOLD_MS = 1200;
export const PASTE_DEADLINE_MS = 10000;
+// Give Claude Code time to switch into /low-priority mode before retrying a
+// prompt rejected by its session limit. Shared by both TUI execution paths.
+export const CLAUDE_LOW_PRIORITY_RESUBMIT_DELAY_MS = 1500;
// How long to wait for claude's POSITIVE input-ready footer (createInputReadyTracker)
// before giving up and surfacing a startup failure. Generous because a cold
// claude start can spend many seconds on banner + MCP-server + model init