Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

Merge pull request #31 from mweinbach/codex/add-openai-compaction-support

8 months ago

aedd06d
Authored
mweinbach3/9/2026, 7:21:50 PM
Fix OpenAI compaction support for desktop flows

Parents64968a7d09b341

133 files changed
  • .github/workflows/ci.yml+0−3
  • AGENTS.md+0−1
  • CONTRIBUTING.md+2−4
  • README.md+3−14
  • apps/TUI/context/sync.tsx+3−1
  • apps/TUI/context/syncEventReducer.ts+3−0
  • apps/desktop/README.md+1−1
  • apps/desktop/electron/services/persistence.ts+3−0
  • apps/desktop/electron/services/serverManager.ts+89−19
  • apps/desktop/electron/services/validation.ts+3−2
  • apps/desktop/src/app/modelStream.ts+10−0
  • apps/desktop/src/app/persistedProviderState.ts+102−0
  • apps/desktop/src/app/store.actions/bootstrap.ts+7−1
  • apps/desktop/src/app/store.actions/provider.ts+42−1
  • apps/desktop/src/app/store.actions/workspace.ts+8−2
  • apps/desktop/src/app/store.feedMapping.ts+95−17
  • apps/desktop/src/app/store.helpers.ts+20−4
  • apps/desktop/src/app/store.helpers/controlSocket.ts+6−3
  • apps/desktop/src/app/store.helpers/persistence.ts+19−14
  • apps/desktop/src/app/store.helpers/runtimeState.ts+18−1
  • apps/desktop/src/app/store.helpers/threadEventReducer.ts+60−9
  • apps/desktop/src/app/types.ts+8−0
  • apps/desktop/src/components/ai-elements/reasoning.tsx+72−6
  • apps/desktop/src/components/ai-elements/tool.tsx+68−8
  • apps/desktop/src/lib/wsProtocol.ts+5−5
  • apps/desktop/src/ui/ChatView.tsx+13−5
  • apps/desktop/src/ui/chat/ActivityGroupCard.tsx+60−164
  • apps/desktop/src/ui/chat/activityGroups.ts+78−13
  • apps/desktop/src/ui/chat/toolCards/ToolCard.tsx+70−25
  • apps/desktop/src/ui/settings/pages/ProvidersPage.tsx+135−9
  • apps/desktop/test/chat-activity-group-card.test.tsx+172−0
  • apps/desktop/test/chat-activity-groups.test.ts+93−11
  • apps/desktop/test/persistence-state-sanitization.test.ts+54−0
  • apps/desktop/test/protocol-v2-events.test.ts+181−1
  • apps/desktop/test/providers-page.test.ts+158−1
  • apps/desktop/test/renderer-url.test.ts+1−1
  • apps/desktop/test/server-manager.test.ts+30−1
  • apps/desktop/test/store-feed-mapping.test.ts+510−0
  • apps/desktop/test/thread-reconnect.test.ts+1−0
  • apps/desktop/test/workspace-settings-sync.test.ts+46−0
  • apps/desktop/test/workspace-startup.test.ts+224−0
  • apps/desktop/test/ws-protocol-parse.test.ts+11−0
  • apps/portal/.gitignore+0−2
  • apps/portal/app/api/runs/detail/route.ts+0−25
  • apps/portal/app/api/runs/route.ts+0−18
  • apps/portal/app/api/stream/runs/route.ts+0−101
  • apps/portal/app/globals.css+0−403
  • apps/portal/app/layout.tsx+0−16
  • apps/portal/app/page.tsx+0−5
  • apps/portal/bun.lock+0−138
  • apps/portal/components/dashboard.tsx+0−566
  • apps/portal/lib/harness.ts+0−422
  • apps/portal/next-env.d.ts+0−5
  • apps/portal/next.config.ts+0−9
  • apps/portal/package.json+0−22
  • apps/portal/tsconfig.json+0−24
  • bun.lock+27−28
  • docs/architecture.md+2−10
  • docs/harness/runbook.md+0−11
  • docs/websocket-protocol.md+236−12
  • package.json+10−12
  • src/agent.ts+13−0
  • src/cli/repl.ts+32−0
  • src/cli/repl/serverEventHandler.ts+7−1
  • src/client/modelStream.ts+14−3
  • src/client/modelStreamReplay.ts+117−0
  • src/connect.ts+78−73
  • src/providerStatus.ts+191−41
  • src/providers/authRegistry.ts+30−2
  • src/providers/codex-auth.ts+24−29
  • src/providers/codex-cli.ts+1−1
  • src/providers/codex-oauth-flows.ts+69−21
  • src/providers/connectionCatalog.ts+6−1
  • src/providers/modelAdapter.ts+2−2
  • src/runtime/index.ts+4−0
  • src/runtime/openaiEventStream.ts+75−0
  • src/runtime/openaiNativeResponses.ts+402−0
  • src/runtime/openaiResponsesProjector.ts+311−0
  • src/runtime/openaiResponsesRuntime.ts+201−0
  • src/runtime/openaiResponsesShared.ts+340−0
  • src/runtime/piMessageBridge.ts+27−5
  • src/runtime/piRuntime.ts+141−109
  • src/runtime/piRuntimeOptions.ts+9−0
  • src/runtime/piStreamParts.ts+124−0
  • src/runtime/types.ts+10−0
  • src/server/modelStream.ts+34−3
  • src/server/protocol.ts+32−2
  • src/server/protocolEventParser.ts+45−0
  • src/server/protocolParser.ts+34−0
  • src/server/session/AgentSession.ts+109−1
  • src/server/session/ProviderAuthManager.ts+116−1
  • src/server/session/SessionAdminManager.ts+51−1
  • src/server/session/SessionContext.ts+34−0
  • src/server/session/SessionSnapshotBuilder.ts+9−1
  • src/server/session/TurnExecutionManager.ts+194−61
  • src/server/sessionDb.ts+35−0
  • src/server/sessionDb/mappers.ts+49−0
  • src/server/sessionDb/migrations.ts+27−1
  • src/server/sessionDb/repository.ts+203−6
  • src/server/sessionStore.ts+203−2
  • src/server/startServer.ts+235−25
  • src/server/startServer/dispatchClientMessage.ts+6−0
  • src/shared/openaiContinuation.ts+37−0
  • src/shared/persistentSubagents.ts+38−0
  • src/store/connections.ts+2−1
  • src/tools/context.ts+20−0
  • src/tools/index.ts+22−3
  • src/tools/persistentAgents.ts+79−0
  • tasks/lessons.md+17−0
  • tasks/todo.md+458−0
  • test/agentSocket.parse.test.ts+34−0
  • test/connect.test.ts+165−50
  • test/modelStreamReplay.test.ts+77−0
  • test/persistentAgents.tool.test.ts+167−0
  • test/portal.harness.test.ts+0−65
  • test/protocol.test.ts+53−0
  • test/providerStatus.test.ts+159−45
  • test/providers/auth-registry.test.ts+20−1
  • test/providers/codex-auth.test.ts+6−28
  • test/providers/codex-cli.test.ts+26−15
  • test/providers/codex-oauth-flows.test.ts+114−0
  • test/providers/connection-catalog.test.ts+36−0
  • test/providers/saved-keys.test.ts+24−2
  • test/runtime.openai-responses-runtime.test.ts+514−0
  • test/runtime.pi-message-bridge.test.ts+35−0
  • test/runtime.pi-options.test.ts+10−0
  • test/runtime.pi-runtime.test.ts+28−0
  • test/server.test.ts+274−0
  • test/session-db-mappers.test.ts+49−1
  • test/session-db.test.ts+165−0
  • test/session-store.test.ts+80−3
  • test/session.stream-pipeline.test.ts+40−0
  • test/session.test.ts+316−1