paperclip/server/src
Forgotten 2acf28a51a Implement task-scoped sessions, queued run chaining, and session reset API
Heartbeat service now resolves session state per-task using agentTaskSessions,
with resolveNextSessionState handling codec-based serialization and fallback
to legacy sessionId. Queued runs are chained — when a run finishes or is reaped,
the next queued run for the same agent starts automatically. Queued runs for
an agent with an already-running run wait instead of failing.

Add task-sessions list endpoint and extend reset-session to accept optional
taskKey for targeted session clearing. Block pending_approval agents from
API key auth. Update agent/company delete cascades to include task sessions.
Update spec docs with task-session architecture.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 14:02:17 -06:00
..
__tests__ Add adapter session codecs with cwd-aware resume and unknown-session retry 2026-02-19 14:01:58 -06:00
adapters Add adapter session codecs with cwd-aware resume and unknown-session retry 2026-02-19 14:01:58 -06:00
middleware Implement agent hiring, approval workflows, config revisions, LLM reflection, and sidebar badges 2026-02-19 13:02:41 -06:00
realtime Implement agent runtime services and WebSocket realtime 2026-02-17 12:24:43 -06:00
routes Implement task-scoped sessions, queued run chaining, and session reset API 2026-02-19 14:02:17 -06:00
services Implement task-scoped sessions, queued run chaining, and session reset API 2026-02-19 14:02:17 -06:00
types Server: migration prompts, structured logging, heartbeat reaping, and issue-run tracking 2026-02-19 09:09:40 -06:00
agent-auth-jwt.ts Implement local agent JWT authentication for adapters 2026-02-18 16:46:45 -06:00
app.ts Implement agent hiring, approval workflows, config revisions, LLM reflection, and sidebar badges 2026-02-19 13:02:41 -06:00
config-file.ts Implement local agent JWT authentication for adapters 2026-02-18 16:46:45 -06:00
config.ts Implement local agent JWT authentication for adapters 2026-02-18 16:46:45 -06:00
errors.ts Add server routes for companies, approvals, costs, and dashboard 2026-02-17 09:07:27 -06:00
index.ts Implement agent hiring, approval workflows, config revisions, LLM reflection, and sidebar badges 2026-02-19 13:02:41 -06:00
paths.ts Implement local agent JWT authentication for adapters 2026-02-18 16:46:45 -06:00
startup-banner.ts Implement local agent JWT authentication for adapters 2026-02-18 16:46:45 -06:00