Add Tauri desktop app with local Codex chat - #3
Draft
adrianvalentim wants to merge 8 commits into
Draft
Conversation
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
codex app-serverprocess and the user's existing ChatGPT sign-in, with no API-key handlingworkspace-writesandbox and approval flowArchitecture and safety
The desktop UI talks JSON-RPC to a small Rust stdio bridge, which launches the installed Codex App Server. Authentication remains owned by Codex/ChatGPT. The app neither stores an OpenAI key nor calls the OpenAI API directly.
Learning workspaces stay external and authoritative. The Tauri filesystem capability still grants only read, metadata, and watch operations. A selected
Learningfolder is used as the working directory for new Codex tasks; existing tasks associated with either that folder or its project root are shown. Claude Code is not embedded, but it can continue editing the same vault externally.Raw vault HTML is sanitized at the React render boundary, and the desktop CSP remains restrictive. No private learning data is included.
Validation
pnpm -C App check— 8/8 backend tests, frontend production build, and Tauri permission/native validationcargo fmt --manifest-path App/src-tauri/Cargo.toml -- --checkcargo clippy --manifest-path App/src-tauri/Cargo.toml --all-targets -- -D warningspnpm -C App desktop:build --no-bundle— optimized native build completedThis remains stacked on #2 so the desktop and chat diff stays isolated. It can be retargeted to
mainafter #2 merges.