Repository navigation
fix(chatgpt, claude-desktop): run git from the Sdk instead of the host - #1526
Merged
Merged
Conversation
Both apps' coding agents need git. Claude Desktop had none, so Code could not show diffs (#1523). ChatGPT forwarded git to the host through a flatpak-spawn shim, which needed --talk-name=org.freedesktop.Flatpak and ran hooks, aliases and core.sshCommand outside the sandbox. Switch both to the org.freedesktop.Sdk runtime, which ships git, and give it the user's git config read-only plus the SSH agent. ChatGPT drops the shim and the Flatpak talk name, so it no longer declares a dangerous permission. A host-side credential helper is no longer reachable; the metainfo says so. Fixes #1523
2 tasks done
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.
What: Claude Desktop (
com.anthropic.ClaudeDesktop) and ChatGPT (com.openai.ChatGPT). Fixes #1523.Packaging:
org.freedesktop.Platformtoorg.freedesktop.Sdk26.08 (as VS Code already does). The Sdk ships git, ssh, python3 and make inside the sandbox; the Platform has no git, so Claude Desktop's Code view couldn't show diffs.git-hostshim (/app/bin/git→flatpak-spawn --host git) is removed.Sandbox:
--filesystem=~/.gitconfig:ro,--filesystem=xdg-config/git:ro(identity and settings for the sandbox git; read-only becausegit config --globalwrites by rename, which a single-file bind can't take) and--socket=ssh-auth(SSH remotes).--talk-name=org.freedesktop.Flatpak:dangerous_permissionsis now empty and thehost-commandpackaging note is gone. Hooks and aliases now run inside the sandbox.Tested:
read-descriptorandaudit-descriptorpass for both.gitis/usr/bin/git, andgit config --show-originreads~/.gitconfig.xdg-config/gitalso appears under the app's redirectedXDG_CONFIG_HOME, so git finds it.Screenshots: unchanged.