fix: register codex web activity plugin

This commit is contained in:
harshitsinghbhandari 2026-04-18 14:15:29 +05:30
parent b0d0994efd
commit bd7239257f
7 changed files with 24 additions and 1 deletions

View File

@ -1,6 +1,7 @@
---
"@aoagents/ao-plugin-agent-codex": patch
"@aoagents/ao-plugin-agent-claude-code": patch
"@aoagents/ao-web": patch
---
Improve Claude Code and Codex session cost estimates to account for cached-token spend, and make Codex restore commands fall back to approval prompts for worker sessions instead of blindly reusing dangerous bypass flags.
Improve Claude Code and Codex session cost estimates to account for cached-token spend, make Codex restore commands fall back to approval prompts for worker sessions instead of blindly reusing dangerous bypass flags, and register the Codex plugin in the web dashboard so native activity detection works there.

View File

@ -3,6 +3,7 @@ const nextConfig = {
transpilePackages: [
"@aoagents/ao-core",
"@aoagents/ao-plugin-agent-claude-code",
"@aoagents/ao-plugin-agent-codex",
"@aoagents/ao-plugin-agent-opencode",
"@aoagents/ao-plugin-runtime-tmux",
"@aoagents/ao-plugin-scm-github",

View File

@ -30,6 +30,7 @@
"dependencies": {
"@aoagents/ao-core": "workspace:*",
"@aoagents/ao-plugin-agent-claude-code": "workspace:*",
"@aoagents/ao-plugin-agent-codex": "workspace:*",
"@aoagents/ao-plugin-agent-cursor": "workspace:*",
"@aoagents/ao-plugin-agent-opencode": "workspace:*",
"@aoagents/ao-plugin-runtime-tmux": "workspace:*",

View File

@ -7,6 +7,7 @@ const {
mockRegistry,
tmuxPlugin,
claudePlugin,
codexPlugin,
opencodePlugin,
worktreePlugin,
scmPlugin,
@ -31,6 +32,7 @@ const {
mockRegistry,
tmuxPlugin: { manifest: { name: "tmux" } },
claudePlugin: { manifest: { name: "claude-code" } },
codexPlugin: { manifest: { name: "codex" } },
opencodePlugin: { manifest: { name: "opencode" } },
worktreePlugin: { manifest: { name: "worktree" } },
scmPlugin: { manifest: { name: "github" } },
@ -54,6 +56,7 @@ vi.mock("@aoagents/ao-core", () => ({
vi.mock("@aoagents/ao-plugin-runtime-tmux", () => ({ default: tmuxPlugin }));
vi.mock("@aoagents/ao-plugin-agent-claude-code", () => ({ default: claudePlugin }));
vi.mock("@aoagents/ao-plugin-agent-codex", () => ({ default: codexPlugin }));
vi.mock("@aoagents/ao-plugin-agent-opencode", () => ({ default: opencodePlugin }));
vi.mock("@aoagents/ao-plugin-workspace-worktree", () => ({ default: worktreePlugin }));
vi.mock("@aoagents/ao-plugin-scm-github", () => ({ default: scmPlugin }));
@ -94,6 +97,14 @@ describe("services", () => {
expect(mockRegister).toHaveBeenCalledWith(opencodePlugin);
});
it("registers the Codex agent plugin with web services", async () => {
const { getServices } = await import("../lib/services");
await getServices();
expect(mockRegister).toHaveBeenCalledWith(codexPlugin);
});
it("caches initialized services across repeated calls", async () => {
const { getServices } = await import("../lib/services");

View File

@ -33,6 +33,7 @@ import {
// Static plugin imports — webpack needs these to be string literals
import pluginRuntimeTmux from "@aoagents/ao-plugin-runtime-tmux";
import pluginAgentClaudeCode from "@aoagents/ao-plugin-agent-claude-code";
import pluginAgentCodex from "@aoagents/ao-plugin-agent-codex";
import pluginAgentCursor from "@aoagents/ao-plugin-agent-cursor";
import pluginAgentOpencode from "@aoagents/ao-plugin-agent-opencode";
import pluginWorkspaceWorktree from "@aoagents/ao-plugin-workspace-worktree";
@ -76,6 +77,7 @@ async function initServices(): Promise<Services> {
// Register plugins explicitly (webpack can't handle dynamic import() in core)
registry.register(pluginRuntimeTmux);
registry.register(pluginAgentClaudeCode);
registry.register(pluginAgentCodex);
registry.register(pluginAgentCursor);
registry.register(pluginAgentOpencode);
registry.register(pluginWorkspaceWorktree);

View File

@ -44,6 +44,10 @@ export default defineConfig({
find: "@aoagents/ao-plugin-agent-claude-code",
replacement: resolve(__dirname, "../plugins/agent-claude-code/src/index.ts"),
},
{
find: "@aoagents/ao-plugin-agent-codex",
replacement: resolve(__dirname, "../plugins/agent-codex/src/index.ts"),
},
{
find: "@aoagents/ao-plugin-agent-opencode",
replacement: resolve(__dirname, "../plugins/agent-opencode/src/index.ts"),

View File

@ -618,6 +618,9 @@ importers:
'@aoagents/ao-plugin-agent-claude-code':
specifier: workspace:*
version: link:../plugins/agent-claude-code
'@aoagents/ao-plugin-agent-codex':
specifier: workspace:*
version: link:../plugins/agent-codex
'@aoagents/ao-plugin-agent-cursor':
specifier: workspace:*
version: link:../plugins/agent-cursor