* refactor(tmux-subagent): add state-first architecture with decision engine Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai> * feat(tmux): add pane spawn callbacks for background and sync sessions Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai> --------- Co-authored-by: justsisyphus <justsisyphus@users.noreply.github.com> Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
13 lines
492 B
TypeScript
13 lines
492 B
TypeScript
// Polling interval for background session status checks
|
|
export const POLL_INTERVAL_BACKGROUND_MS = 2000
|
|
|
|
// Maximum idle time before session considered stale
|
|
export const SESSION_TIMEOUT_MS = 10 * 60 * 1000 // 10 minutes
|
|
|
|
// Grace period for missing session before cleanup
|
|
export const SESSION_MISSING_GRACE_MS = 6000 // 6 seconds
|
|
|
|
// Session readiness polling config
|
|
export const SESSION_READY_POLL_INTERVAL_MS = 500
|
|
export const SESSION_READY_TIMEOUT_MS = 10_000 // 10 seconds max wait
|