feat: import Codex sessions into LiveAgent - #300
Draft
FlowerRealm wants to merge 10 commits into
Draft
Conversation
Add a settings entry "Conversations" that scans ~/.codex/sessions and imports Codex conversations that are not already present in LiveAgent, exposing chat_history_import_codex to the frontend. - Backend: new codex_import module wiring an import command - Frontend: ConversationsSection + nav entry + i18n (zh/en) - Tests: cover the Codex import path
Author
|
代码vibe的, 如有码风等要求劳烦自己改一下 |
Hardcoded fixtures that mirror the implementation they guard add no value——delete them.
Split the one-shot chat_history_import_codex command into a read-only scan (chat_history_scan_codex) returning per-session alreadyImported flags, and an import command that accepts the selected session ids. Add a two-pane CodexImportDialog (workspaces left, sessions right). New sessions are selected by default; already-imported sessions are greyed out and unchecked. Sessions under ~/Documents/Codex already collapse into the default-project workspace via codex_import_cwd.
The ~/Documents/Codex remapping was platform-dependent and fragile. Sessions are already read from the stable ~/.codex/sessions path; the cwd field inside each session now passes through unmodified.
FlowerRealm
marked this pull request as ready for review
July 28, 2026 07:47
Replace forEach callbacks returning values with for...of loops to fix useIterableCallbackReturn errors. Biome auto-formatting.
Author
Author
|
依然缺失windows下测评 |
Author
|
等一下找到人测了 |
Member
|
晚点我在windows下测一下 |
Author
|
看看UI有没有问题 |
Map Codex temporary Documents directories to LiveAgent's default project so imported conversations do not retain invalid working directories.
…nto feat/import-codex-conversations
FlowerRealm
marked this pull request as draft
July 29, 2026 01:58
FlowerRealm
marked this pull request as ready for review
July 29, 2026 02:01
Author
|
windows测试过了吗 @su-fen |
Author
|
现在有个问题是Codex App有不在任何工作区的临时会话的判定 |
Author
|
算了先把claude部分一起写了 |
FlowerRealm
marked this pull request as draft
July 29, 2026 05:24
FlowerRealm
marked this pull request as ready for review
July 29, 2026 07:34
Author
|
已完成windows上测试, 请求合并 |
Author
FlowerRealm
marked this pull request as draft
July 29, 2026 08:00
Author
|
撤回我的合并请求 |
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
Adds a new Conversations settings section that imports Codex (
~/.codex/sessions) conversations into LiveAgent, skipping ones already present, and exposes achat_history_import_codexcommand to the frontend.Changes
crates/agent-gui/src-tauri):codex_import.rsmodule implementing the import +chat_history_import_codexcommandlib.rsand wired intochat_history/mod.rschat_history/tests.rscrates/agent-gui/src):ConversationsSection.tsxsettings panelSectionId("conversations") inSettingsPage.tsx/types.tsimportCodexChatHistory()helper inchatHistory.tsi18n/config.tsNotes
getSaveIndicator(foldssaved/idleinto the default branch; behavior unchanged).Testing
cargo testfor the new chat_history import path