fix: respect tool-specific env vars for session storage paths#14
Merged
yigitkonur merged 1 commit intoyigitkonur:mainfrom Feb 25, 2026
Merged
Conversation
Parsers now check CLAUDE_CONFIG_DIR, CODEX_HOME, GEMINI_CLI_HOME, and XDG_DATA_HOME before falling back to the default home-based paths. This matches each tool's own config resolution behavior. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
yigitkonur
added a commit
that referenced
this pull request
Feb 25, 2026
Rewrote the entire README to read like an actual developer wrote it: - Punchier intro that leads with the problem, not a feature list - Collapsed the 14×14 checkmark matrix into one sentence - Cut 430→238 lines by removing redundancy and AI-doc patterns - Added Community Contributions section referencing #1, #3, #4, #14 - Documented the 7 new agents (Amp, Kiro, Crush, Cline, Roo Code, Kilo Code, Antigravity) and bugs fixed in this round - Prose over bullet spam, natural flow over exhaustive structure Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
yigitkonur
added a commit
that referenced
this pull request
Feb 25, 2026
Implements the approach from PR #14 by @yutakobayashidev and extends it to all applicable parsers: - Claude Code: CLAUDE_CONFIG_DIR → $CLAUDE_CONFIG_DIR/projects/ - Codex CLI: CODEX_HOME → $CODEX_HOME/sessions/ - Gemini CLI: GEMINI_CLI_HOME → $GEMINI_CLI_HOME/.gemini/tmp/ - OpenCode: XDG_DATA_HOME → $XDG_DATA_HOME/opencode/ - Amp CLI: XDG_DATA_HOME → $XDG_DATA_HOME/amp/threads/ - Antigravity: GEMINI_CLI_HOME → $GEMINI_CLI_HOME/.gemini/antigravity/ Without this, users who customize their config directories via env vars have their sessions silently missed by continues. Also adds envVar metadata to the adapter registry so the help output shows which env vars override each tool's storage path. Verified: CLAUDE_CONFIG_DIR=/tmp/fake-dir correctly redirects discovery away from ~/.claude (886→0 sessions), confirming the override works. Refs: #14 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Parsers now check each tool's official environment variable override before falling back to the default
os.homedir()-based paths. Without this, users who customize their config directories via env vars will have their sessions silently missed bycontinues.CLAUDE_CONFIG_DIR→$CLAUDE_CONFIG_DIR/projects/CODEX_HOME→$CODEX_HOME/sessions/GEMINI_CLI_HOME→$GEMINI_CLI_HOME/.gemini/tmp/XDG_DATA_HOME→$XDG_DATA_HOME/opencode/The remaining 3 tools (Copilot, Factory Droid, Cursor) have no env var override mechanism, so they are unchanged.
References
Each env var matches the tool's own config resolution:
CLAUDE_CONFIG_DIRCODEX_HOMEcodex-rs/utils/home-dir/src/lib.rs#L11-L15—find_codex_home()readsCODEX_HOMEenv varGEMINI_CLI_HOMEpackages/core/src/utils/paths.ts#L20-L26, docs: ConfigurationXDG_DATA_HOMEpackages/opencode/src/global/index.ts#L2-L9—xdgDatafromxdg-basedirresolves$XDG_DATA_HOME/opencodeTest plan
tsccompiles cleanvitest run)CLAUDE_CONFIG_DIR=/tmp/test-claudeand verifycontinues list --source claudereads from the custom pathCODEX_HOME=/tmp/test-codexand verifycontinues list --source codexreads from the custom path🤖 Generated with Claude Code