Skip to content

Isolate Slack thread sessions with worktrees#44

Merged
Innei merged 1 commit into
mainfrom
feature/thread-worktree-sessions
Jun 12, 2026
Merged

Isolate Slack thread sessions with worktrees#44
Innei merged 1 commit into
mainfrom
feature/thread-worktree-sessions

Conversation

@Innei

@Innei Innei commented Jun 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • add a GitThreadWorkspaceManager that creates stable per-thread worktrees from the repository default branch
  • insert worktree resolution between workspace resolution and session persistence so new Slack threads get isolated cwd while resumed threads reuse their saved worktree
  • add worktree cleanup with configurable retention/interval, protecting any worktree still referenced by sessions and pruning expired unbound managed worktrees
  • update agent git workflow prompt rules and stale session workspace fallback tests

Verification

  • pnpm -F @innei/kagura exec vitest run tests/thread-worktree.test.ts tests/conversation-pipeline.test.ts tests/workspace-resolution.test.ts tests/prompt-memory-context.test.ts
  • pnpm -F @innei/kagura typecheck
  • pnpm -F @innei/kagura build

@safedep

safedep Bot commented Jun 12, 2026

Copy link
Copy Markdown

SafeDep Report Summary

Green Malicious Packages Badge Green Vulnerable Packages Badge Green Risky License Badge

No dependency changes detected. Nothing to scan.

View complete scan results →

This report is generated by SafeDep Github App

@Innei Innei force-pushed the feature/thread-worktree-sessions branch from 4f6b613 to cbf7373 Compare June 12, 2026 11:48
@Innei Innei merged commit 2b6fae7 into main Jun 12, 2026
3 checks passed
@Innei Innei deleted the feature/thread-worktree-sessions branch June 12, 2026 12:15
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.

1 participant