Skip to content

Conversation

@oldsj
Copy link
Owner

@oldsj oldsj commented Jan 15, 2026

Summary

  • Remove the separate WorkerTask system entirely and unify around Sessions
  • Delete task_router.py, worker.py, and frontend tasks.ts store
  • Remove all /tasks/* API endpoints
  • Session workflow now handles K8s job lifecycle directly
  • Add network policy to allow session pods to callback to backend

This eliminates the task/session split - sessions now handle all background work with inline threading in the main conversation.

Closes #52

Test plan

  • Manual test: spawned a session to create a file in a repo
  • Verify session completion callback works
  • Test session cancellation flow

🤖 Generated with Claude Code

oldsj and others added 3 commits January 15, 2026 14:07
Remove the separate WorkerTask system entirely and unify around Sessions:

- Delete task_router.py, worker.py, and frontend tasks.ts store
- Remove all /tasks/* API endpoints
- Change project detail to return sessions instead of tasks
- Update internal completion callback to /internal/sessions/{session_id}/complete
- Session workflow now handles K8s job lifecycle directly
- Simplify frontend by removing task-specific components and stores

This eliminates the task/session split - sessions now handle all background
work with inline threading in the main conversation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Session pods need to POST results back to the backend when they complete.
The existing network policies blocked all cluster-internal traffic, which
prevented the callback from reaching mainloop-backend.

Add allow-mainloop-callback policy to permit egress to the mainloop namespace.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@oldsj oldsj merged commit 63b8bad into main Jan 15, 2026
5 of 6 checks passed
@oldsj oldsj deleted the feature/session-k8s-isolation branch January 15, 2026 19:33
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.

Sessions run in backend pod instead of isolated K8s jobs

2 participants