Commit Graph

10 Commits

Author SHA1 Message Date
Cowork 3P
60ed369df7 refactor: remove stale runtime fallbacks 2026-06-04 22:38:09 +08:00
Cowork 3P
92f81eb27a refactor: eliminate dead codex_runtime methods, add anti-fallback policy
codex_runtime.dart (-290 lines):
- Remove 17 dead methods behind UnsupportedError guard
  (findCodexBinary, startStdio, request, startThread, resumeThread,
   sendMessage, interrupt, getAccount, listModels, listSkills, stop,
   dispose, _resolveLaunchConfiguration + 3 @visibleForTesting wrappers)
- Remove 10 dead fields (_process, _state, _pendingRequests, _events, etc.)
- Remove ChangeNotifier mixin (nothing to notify)
- Keep only model types, enums, and standalone helper functions

AGENTS.md (+21 lines):
- Add Fallback and Dead Code Elimination Policy section
- Forbidden: cascading fallbacks, lingering DEPRECATED code,
  dead code behind guards, silent catch blocks, redundant indirection,
  excessive JSON key probing
- Required: inline WHY comments on every retained fallback chain

Additional cleanup:
- gateway_acp_client.dart: remove unused _GatewayAcpSessionUpdate class
- runtime_controllers_entities.dart: replace _canRefreshThroughRuntime
  with runtimeInternal.isConnected
- runtime_models_gateway_entities.dart: relocate CollaborationAttachment
2026-06-04 07:13:29 +00:00
Haitao Pan
99796e238c Refactor bridge runtime routing 2026-04-21 16:28:26 +08:00
Haitao Pan
7b550562e8 refactor(runtime): eliminate local agent process management and CLI probing
- Refactor MultiAgentOrchestrator to remove local process management.
- Disable local CLI execution and existence checks in orchestration workflows.
- Remove local process discovery and state reconciliation in mount adapters.
- Mark local agent process launching as deprecated/disabled across runtime.
2026-04-21 12:45:26 +08:00
Haitao Pan
d3b6585bd5 refactor(bridge): enforce remote bridge execution and remove local ACP fallbacks
- Prioritize remote endpoints for svc.plus accounts.
- Remove legacy local go-core execution logic.
- Remove legacy local codex app-server launch logic.
- Update endpoint resolution to support provider-specific paths.
2026-04-21 12:35:52 +08:00
Haitao Pan
de010bab5e Refine desktop agent launch policy 2026-03-27 15:31:46 +08:00
Haitao Pan
691dd39597 fix: harden codex model refresh handling 2026-03-27 00:30:22 +08:00
Haitao Pan
ee09c13d88 refactor(appstore): use external single-agent app-server 2026-03-23 18:20:42 +08:00
Haitao Pan
364d01f372 feat: align Windows desktop runtime with macOS parity 2026-03-16 22:26:46 +08:00
Haitao Pan
a6699beff3 feat: integrate Codex CLI as built-in code agent
- Add CodexRuntime for process management and JSON-RPC communication
- Add CodexConfigBridge for AI Gateway configuration
- Add ModeSwitcher for OpenClaw Gateway mode switching (local/remote/offline)
- Add AgentRegistry for agent registration and discovery
- Add RuntimeCoordinator for unified coordination
- Add Rust FFI bindings for native integration
- Add comprehensive test coverage

Phase 1-4 features:
- Configuration bridging to AI Gateway
- Mode switching between local/remote/offline
- Agent registration protocol
- Cloud memory sync capability
- Offline fallback support

CI/CD:
- GitHub Actions workflow for Rust FFI build
- Build scripts for macOS universal binary
- Integration with Flutter build process

Co-authored-by: Codex CLI Integration <codex@openai.com>
2026-03-14 00:10:27 +08:00