Context dump/load for session isolation #136
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
Implement explicit context dump/load mechanism to prevent session context bleeding between different projects.
Problem
When running parallel agents on different repositories (e.g., kugetsu and jigaido), sessions occasionally get mixed up:
Solution
Store full conversation history in files tied to issue-ref (not opencode session ID).
Directory Structure
Context File Format
Flow
kugetsu start <issue> <msg>:~/.kugetsu/context/<issue-ref>.jsonkugetsu continue <issue> <msg>:Session ends (after each command):
updated_attimestampImplementation
kugetsu_context_load()functionkugetsu_context_dump()functioncmd_startandcmd_continueConfiguration
Rationale
By tying context to issue-ref instead of session ID:
Related Issues