Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
6924498
feat: add codex
kuishou68 Sep 16, 2025
2c3ef88
perf: codex message type processing
kuishou68 Sep 18, 2025
ac8613e
fix: Solve the problem that the files generated by codex cannot be wr…
kuishou68 Sep 18, 2025
c430faa
feat: Added the Generate File to Workspace feature; fix: The bottom-u…
kuishou68 Sep 19, 2025
c122d53
Merge branch 'main' into pojian-feat
kuishou68 Sep 19, 2025
0bc8675
fix: Resolve merge conflicts and type errors.
kuishou68 Sep 19, 2025
e68f99b
chore: remove debug console logs from Codex implementation
kuishou68 Sep 19, 2025
f60ec58
refactor: move content message processing from chatLib to CodexAgentM…
kuishou68 Sep 19, 2025
dd5da48
feat: merge Codex support improvements from MessageAcpPermission to M…
kuishou68 Sep 19, 2025
35304f3
feat: complete internationalization for hardcoded Chinese text
kuishou68 Sep 19, 2025
b6a3d14
refactor: modularize CodexAgentManager with improved type safety
kuishou68 Sep 19, 2025
93e3a1a
refactor: optimize message transformation architecture and improve ty…
kuishou68 Sep 19, 2025
6b4cc8a
fix: Fix session and file read/write failure issues after refactoring…
kuishou68 Sep 20, 2025
a8dd035
feat: Inferential message support
kuishou68 Sep 20, 2025
4b379b5
refactor: Refactor the logic related to codex.
kuishou68 Sep 21, 2025
938ffc7
fix: Fix potential issues that may arise from using Math.random()
kuishou68 Sep 21, 2025
a6c6055
refactor: Remove debug console.log statements from Codex modules
kuishou68 Sep 21, 2025
2a1b355
fix: Fix syntax errors.
kuishou68 Sep 22, 2025
bff26fd
fix: Fix the issue where the workspace file selection echoes to the i…
kuishou68 Sep 22, 2025
ccb8652
fix: Fix the issue of duplicate content pasted in the QWEN session in…
kuishou68 Sep 22, 2025
d450c60
refactor: Refactor ipcBridge.geminiConversation.confirmMessage to be …
kuishou68 Sep 22, 2025
9649462
fix: Fix any type issues related to codex
kuishou68 Sep 22, 2025
da3c680
refactor: Refactor the processing logic of agents in CodexAgentManage…
kuishou68 Sep 22, 2025
8f7954c
refactor: Refactor The file path handling logic has been integrated i…
kuishou68 Sep 22, 2025
3b94837
refactor: Refactor The componentId logic related to refactoring codex…
kuishou68 Sep 22, 2025
7e620bd
Merge branch 'main' into pojian-feat
kuishou68 Sep 22, 2025
37e0c3e
refactor: Improve Codex code quality based on security bot recommenda…
kuishou68 Sep 22, 2025
1b53a01
fix: Fix Codex chat initialization and paste handling issues
kuishou68 Sep 22, 2025
cbf0857
fix: Optimize the logic of pasting files and remove the display contr…
halvee-tech Sep 22, 2025
8d5d4dd
refactor: Refactor Breakpoint log removal.
kuishou68 Sep 22, 2025
01b746e
style: Added codex logo.
kuishou68 Sep 22, 2025
487be5a
fix: ensure OpenAI usage limit errors are displayed to frontend
Sep 22, 2025
fb92627
feat: complete error handling in CodexMcpConnection
Sep 23, 2025
b8609bb
fix: Resolve Codex error message duplication and text spacing issues
kuishou68 Sep 23, 2025
0083dda
refactor: Replace hardcoded tool names with dynamic ToolRegistry system
kuishou68 Sep 23, 2025
2209322
fix: Add message persistence to error handling in Codex event processing
kuishou68 Sep 23, 2025
aa4f7f6
refactor: Remove Codex-specific modifications from ACP message compon…
kuishou68 Sep 23, 2025
b241cba
refactor: Restructure Codex agent architecture with clear layered org…
kuishou68 Sep 23, 2025
60a6794
fix: Update import paths to use absolute paths throughout Codex archi…
kuishou68 Sep 23, 2025
bdfd05f
fix: Resolve Codex permission request duplication and messaging issues
kuishou68 Sep 24, 2025
229217b
refactor: Remove all Codex-related console logging statements
kuishou68 Sep 24, 2025
150350a
refactor: merge MessageCodexStatus into CodexStatusMessage to remove …
kuishou68 Sep 24, 2025
49b8a32
Merge branch 'main' into pojian-feat
kuishou68 Sep 24, 2025
41b9095
refactor: move dynamic constants to dedicated appConfig module for pr…
kuishou68 Sep 24, 2025
6ac74c4
refactor: modularize codexTypes into separate eventTypes and permissi…
kuishou68 Sep 24, 2025
d14c186
refactor: extract common confirmation logic from MessageCodexPermissi…
kuishou68 Sep 25, 2025
a0f2c6a
refactor: migrate confirmation utilities from utils file to custom ho…
kuishou68 Sep 25, 2025
36ce57d
refactor: codex types organization and add tool types
kuishou68 Sep 25, 2025
530ef89
refactor: Refactor and split the codeType.ts type file, update the i…
kuishou68 Sep 25, 2025
045ea18
fix: resolve duplicate Codex session messages and clean up UI configu…
kuishou68 Sep 25, 2025
196ea64
refactor: reorganize CodexStatusMessage component and fix import stru…
kuishou68 Sep 25, 2025
51608ce
feat: implement comprehensive error handling system with i18n support
kuishou68 Sep 25, 2025
6cf6abf
fix: resolve shell execution state persistence issues in conversation…
kuishou68 Sep 25, 2025
d391e07
refactor: restructure Codex permission system and utils organization
kuishou68 Sep 25, 2025
9ea5806
feat: enhance permission system with debugging and internationalizati…
kuishou68 Sep 25, 2025
93333e0
refactor: Refactor the codex permission option and selecting always s…
kuishou68 Sep 25, 2025
72fd6ed
fix: Fix known errors, restore public file modifications
kuishou68 Sep 25, 2025
e3164c9
fix: Fix querying every application file operation.
kuishou68 Sep 25, 2025
9179b24
fix: Fix console error, remove codex session initialization message.
kuishou68 Sep 25, 2025
e856308
fix: Fix the issue of not receiving messages.
kuishou68 Sep 25, 2025
5680085
fix: Fix the issue of not being able to check codex in Windows enviro…
kuishou68 Sep 26, 2025
e71f88d
fix: Fix Codex double message issue by merging session creation with …
Sep 26, 2025
69f1210
fix: Fix the issue of ignoring line breaks in long text
kuishou68 Sep 26, 2025
c68c4fa
feat: implement streaming thought process display with accumulation
kuishou68 Sep 26, 2025
5590d8f
fix: Fix base64 decoding logic for exec command output chunks
Sep 26, 2025
96cd34b
fix: Fix unnecessary changes.
kuishou68 Sep 26, 2025
b70c224
Merge branch 'pojian-feat' of https://github.com/iOfficeAI/AionUi int…
kuishou68 Sep 26, 2025
55bc254
refactor: Remove AionUi session permission management and fix ID mapping
Sep 26, 2025
3159906
fix: Fix the issue of message duplication in the thinking process of …
kuishou68 Sep 26, 2025
24d93f1
fix: Reconstruct the data processing logic of codex agent_message_delta
Sep 26, 2025
33d4372
Merge branch 'pojian-feat' of https://github.com/iOfficeAI/AionUi int…
kuishou68 Sep 26, 2025
966f894
test: Test the annotation supplement of eventTypes type instance resu…
kuishou68 Sep 27, 2025
98e17c1
Merge branch 'pojian-feat' of https://github.com/iOfficeAI/AionUi int…
kuishou68 Sep 28, 2025
4257bad
feat: optimize code
Sep 28, 2025
d5ef168
refactor: the file path of CodexToolHandlers
Sep 28, 2025
3d1b374
refactor: the file path of appConfig
Sep 28, 2025
67592bb
refactor: Improve Codex agent messaging architecture and event handling.
kuishou68 Sep 28, 2025
609caf4
Merge branch 'pojian-feat' of https://github.com/iOfficeAI/AionUi int…
kuishou68 Sep 28, 2025
bd6244e
fix: Fix eslint bug
kuishou68 Sep 28, 2025
2aefe8b
fix: Optimize the data parsing logic of the thinking process (unfinis…
Sep 28, 2025
c9db774
fix: build error
Sep 28, 2025
67429bf
fix: processTaskStart call error
Sep 28, 2025
8123c55
fix: Remove redundant functions and declarations
Sep 28, 2025
3f929fe
refactor: Reconstruct the thinking process and analyze the logic
Sep 28, 2025
e7b5486
fix: Incorrect use of variables
Sep 28, 2025
275b9f1
refactor: Remove unused codex translation keys
Sep 28, 2025
8d9cac1
refactor: Improve SendBox loading states and ShimmerText animation
Sep 28, 2025
5d22ea9
refactor: Clean up Codex message processing and event handling
Sep 28, 2025
4690d0a
refactor: Reset currentReason in processTaskStart and processTaskComp…
Sep 28, 2025
ba57f0a
fix: Update Codex event type definitions based on actual JSON-RPC logs
Sep 28, 2025
599f1a6
fix: task_complete relpace finish
Sep 28, 2025
b076cad
refactor: Refactoring the message passing between CodexEndBox and Cod…
kuishou68 Sep 28, 2025
70ee37f
Merge branch 'pojian-feat' of https://github.com/iOfficeAI/AionUi int…
kuishou68 Sep 28, 2025
cd120b2
refactor: Refactoring Unreferenced Common Functions Related to Codex.
kuishou68 Sep 28, 2025
098cc4e
refactor: Optimize type system and remove unsafe type assertions
Sep 28, 2025
ebd30ef
Merge branch 'pojian-feat' of github.com:iOfficeAI/AionUi into pojian…
Sep 28, 2025
1d9fc53
fix: remove CodexMessageTransformer
Sep 28, 2025
d3da1e1
Merge branch 'main' into pojian-feat
kuishou68 Sep 28, 2025
046f059
Merge branch 'pojian-feat' of https://github.com/iOfficeAI/AionUi int…
kuishou68 Sep 28, 2025
0ae38a4
refactor: Remove elicitation/create event handling
Sep 28, 2025
7d731b1
refactor: Refactoring the codex workspace to change the workspace par…
kuishou68 Sep 28, 2025
2126523
Merge branch 'pojian-feat' of https://github.com/iOfficeAI/AionUi int…
kuishou68 Sep 28, 2025
63ddb71
fix: add note
Sep 29, 2025
20ecd94
feat: Add Codex tool call UI and fix sandbox permissions
Sep 29, 2025
8afc7c1
feat: support codex workspace auto refresh
Sep 29, 2025
222ac81
refactor: Reorganize message components into subfolders
Sep 29, 2025
3ca3719
fix: remove codex_session_event and replace to codex_status
Sep 29, 2025
8f6ea82
refactor: Unified thinking process display component
Sep 29, 2025
d2f6cfb
fix: Fix ACP tool call content duplication and improve sandbox support
Sep 29, 2025
cdf65ce
fix: Remove duplicate code
Sep 29, 2025
6e8cd81
refactor: Unify Codex error handling and remove redundant code
Sep 29, 2025
5a387a0
fix: Remove the manually constructed type field STREAM_ERROR and the …
Sep 29, 2025
54c5795
refactor: Refactoring emitToolGroup to emitCodexgToolCall.
kuishou68 Sep 29, 2025
5da87c8
Merge branch 'pojian-feat' of https://github.com/iOfficeAI/AionUi int…
kuishou68 Sep 29, 2025
a1e7cb4
fix: Remove redundant moduleResolution setting from tsconfig
Sep 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/webpack/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const mainConfig: Configuration = {
worker: './src/worker/index.ts',
gemini: './src/worker/gemini.ts',
acp: './src/worker/acp.ts',
codex: './src/worker/codex.ts',
},
output: {
filename: '[name].js',
Expand Down
23 changes: 11 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"@google/genai": "^1.16.0",
"@icon-park/react": "^1.4.2",
"@office-ai/aioncli-core": "^0.2.3",
"@office-ai/platform": "^0.3.15",
"@office-ai/platform": "^0.3.16",
"@zed-industries/claude-code-acp": "^0.4.0",
"classnames": "^2.5.1",
"diff2html": "^3.4.52",
Expand Down
2 changes: 1 addition & 1 deletion src/agent/acp/AcpAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class AcpAdapter {
update: {
...existingMessage.content.update,
status: toolCallData.status,
content: toolCallData.content ? [...(existingMessage.content.update.content || []), ...toolCallData.content] : existingMessage.content.update.content,
content: toolCallData.content || existingMessage.content.update.content,
},
};

Expand Down
11 changes: 8 additions & 3 deletions src/agent/acp/AcpConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ export class AcpConnection {
// 通用的spawn配置生成方法
private createGenericSpawnConfig(backend: string, cliPath: string, workingDir: string) {
const isWindows = process.platform === 'win32';
const env = {
...process.env,
};
const env = { ...process.env };

// No additional environment variables needed for sandbox - CLI handles this

let spawnCommand: string;
let spawnArgs: string[];
Expand All @@ -56,6 +56,11 @@ export class AcpConnection {
spawnArgs = ['--experimental-acp'];
}

// Add sandbox argument for gemini/qwen/iflow CLI (boolean flag)
if (backend === 'gemini' || backend === 'qwen' || backend === 'iflow') {
spawnArgs.push('--sandbox');
}

const options: SpawnOptions = {
cwd: workingDir,
stdio: ['pipe', 'pipe', 'pipe'],
Expand Down
2 changes: 1 addition & 1 deletion src/agent/acp/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export class AcpAgent {
// 使用信号回调发送 end_turn 事件,不添加到消息列表
if (this.onSignalEvent) {
this.onSignalEvent({
type: 'ai_end_turn',
type: 'finish',
conversation_id: this.id,
msg_id: uuid(),
data: null,
Expand Down
Loading