Skip to content

Archive thread data when projects hit limits#380

Merged
BunsDev merged 1 commit intomainfrom
okcode/limit-projects-threads
Apr 9, 2026
Merged

Archive thread data when projects hit limits#380
BunsDev merged 1 commit intomainfrom
okcode/limit-projects-threads

Conversation

@BunsDev
Copy link
Copy Markdown
Member

@BunsDev BunsDev commented Apr 9, 2026

Summary

  • Archive active threads before deleting projects so project-cap enforcement leaves no orphaned thread state behind.
  • Clear retained thread payload during projection when a thread is deleted, including messages, plans, activities, checkpoints, and session data.
  • Tighten command invariants so archived projects and threads are rejected for non-create flows with clearer error messages.
  • Update SME chat service startup to read persisted Anthropic credentials from environment storage, and add coverage for the new resolution path.
  • Add tests for project-limit archival ordering, project deletion cascades, thread cleanup, and SME auth behavior.

Testing

  • Not run
  • Covered by new unit tests in orchestration decider/projector/invariant suites.
  • Covered by new SME chat service tests for persisted Anthropic credential resolution.

- Cascade project deletion to active threads and clear retained thread payloads
- Treat archived projects and threads as unavailable in command invariants
- Add coverage for limit handling and deletion projection cleanup
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Apr 9, 2026 8:19pm
v0-compute-the-platform-to-build Ready Ready Preview, Open in v0 Apr 9, 2026 8:19pm

@github-actions github-actions Bot added size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Apr 9, 2026
@BunsDev BunsDev merged commit 0a32dc0 into main Apr 9, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant