fix(snap): separate Claude credentials plug, narrow cline grant - #1195
Merged
Conversation
…g; narrow cline grant to data/tasks Snap Store review (forum topic 52615) asked for both: the credential file is sensitive and only powers the optional quota tile, so it moves to its own claude-quota-credentials plug with no auto-connect; the cline parser reads only ~/.cline/data/tasks/<id> transcripts, so the grant names that directory instead of the whole data root.
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.
Implements the two changes from the Snap Store personal-files review (https://forum.snapcraft.io/t/auto-connect-request-codeburn-personal-files-ai-agent-session-logs/52615):
$HOME/.claude/.credentials.jsonleaves the auto-connectai-agent-session-logsplug and becomes its ownclaude-quota-credentialsplug (personal-files, read-only, single file, no auto-connect requested). It only powers the optional Claude plan/quota tile (app/electron/quota/claude.ts), which already degrades gracefully when unreadable; users who want it runsnap connect codeburn:claude-quota-credentialsonce.$HOME/.cline/datanarrows to$HOME/.cline/data/tasks: the parser reads onlytasks/<taskId>/ui_messages.jsonandapi_conversation_history.json(Cline stores these undertasks/, notsessions/).app/scripts/snap-grants.test.tsupdated to enforce the new shape: no credential path may appear in the auto-connect plug, and the credential plug must stay a single read-only file. 3/3 pass.