Repository navigation
fix(remote): Read Claude chat transcripts from the agent's config dir - #480
Merged
Merged
Conversation
Owner
|
Merged, thanks. It ships in 2.5.7. Named accounts work with it too: their |
simion
added a commit
that referenced
this pull request
Dec 1, 2026
Updates download in the background and install on quit or Restart to update, never under running agents (updates.rs). On Linux a relaunch no longer goes through AppHandle::restart on the main thread, which skipped the exit events, so the new process deferred to the old one and quit. Refs #480 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018opNL4DeF5MZjpvmckKSwo
Contributor
Author
Tried and it worked flawless, thanks! |
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.
Problem
On a phone, a Claude task showed "No messages yet." after the user had already messaged the agent.
This happened whenever the agent's Settings env sets
CLAUDE_CONFIG_DIR.The desktop terminal and the phone's Terminal tab both showed the conversation normally.
The transcript reader looked only in
~/.claude/projects/<cwd>/.With
CLAUDE_CONFIG_DIRset, Claude writes its sessions to$CLAUDE_CONFIG_DIR/projects/<cwd>/, so the reader found nothing and returned no turns.Claude clones (agents that
extendsClaude) had the same problem plus another one: the reader andchat_supportedmatched the exact agent idclaude, so clones got no chat at all.The same lookup also feeds the AskUserQuestion answers from the phone (
claude_quiz) andtermic result, so both were affected.Changes
claude_transcript_filenow gets the agent's base id and config dir through a newCliHost::agent_base_and_dir, which uses the existingagent_dirs::instance_config_dir. It looks in the agent's config dir first and falls back to~/.claudefor sessions started before the variable was set.claudetab.CLAUDE_CONFIG_DIR.~/.claude, because the box's agent env isn't known here.A Claude clone on a server therefore gets no chat, rather than one that stays empty. Docker-sandboxed tasks are not covered either.
Tests
make check-allpass.cargo test --lib: 1822 passed, 0 failed, including new tests for the relocated dir, the inherited env and the pinnedclaudetab.