mirror of
https://github.com/yigitkonur/cli-continues.git
synced 2026-04-26 00:36:02 +03:00
[PR #14] [MERGED] fix: respect tool-specific env vars for session storage paths #18
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cli-continues#18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
📋 Pull Request Information
Original PR: https://github.com/yigitkonur/cli-continues/pull/14
Author: @yutakobayashidev
Created: 2/25/2026
Status: ✅ Merged
Merged: 2/25/2026
Merged by: @yigitkonur
Base:
main← Head:fix/respect-env-var-overrides📝 Commits (1)
89013c3fix: respect tool-specific env vars for session storage paths📊 Changes
4 files changed (+12 additions, -4 deletions)
View changed files
📝
src/parsers/claude.ts(+3 -1)📝
src/parsers/codex.ts(+3 -1)📝
src/parsers/gemini.ts(+3 -1)📝
src/parsers/opencode.ts(+3 -1)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.