Skip to content

fix: align agent session ids across service and providers#25

Merged
idoubi merged 1 commit intoworkany-ai:mainfrom
fancyboi999:fix/agent-session-id
Feb 24, 2026
Merged

fix: align agent session ids across service and providers#25
idoubi merged 1 commit intoworkany-ai:mainfrom
fancyboi999:fix/agent-session-id

Conversation

@fancyboi999
Copy link
Contributor

@fancyboi999 fancyboi999 commented Feb 4, 2026

Summary

  • Reuse service-generated sessionId + abortController inside agent providers (Claude/Codex/DeepAgents)
  • Generate service sessionId with nanoid for uniqueness

Context

Fixes sessionId mismatch between API layer and agent providers, which caused /agent/stop to miss active sessions.

Fixes #24

Test

  • pnpm --filter workany-api build
  • Manual local test: start API with PORT=3035 AGENT_PROVIDER=deepagents, then run a local SSE plan/execute flow and call /agent/stop on the returned sessionId (observed 200 + stop handled in logs)

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