Skip to content

Integrate Qoder Agent SDK as production runtime and fix review items - #222

Merged
Gracker merged 6 commits into
Gracker:mainfrom
wustMeiming:main
Jul 22, 2026
Merged

Integrate Qoder Agent SDK as production runtime and fix review items#222
Gracker merged 6 commits into
Gracker:mainfrom
wustMeiming:main

Conversation

@wustMeiming

@wustMeiming wustMeiming commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Linked Issue

Change Type

  • feat (new capability)
  • fix (bug fix, no API change)
  • refactor (internal cleanup, no behavior change)
  • docs (documentation only)
  • chore (build, CI, tooling, dependency updates)
  • skill / strategy (YAML skill or .strategy.md / .template.md)

Contributor / AI Context

  • I read AGENTS.md before making this change
  • I read the relevant .claude/rules/* file(s) for the affected area
  • For non-trivial changes, I used an independent read-only review pass or documented why it was unavailable

Affected Areas

  • Web UI / committed frontend/
  • CLI / smp
  • Docker / portable package
  • HTTP/SSE API
  • Reports / exports / analysis-result snapshots
  • backend/src/agentv3/ or backend/src/agentOpenAI/ (agent runtime)
  • MCP tool registry / tool adapters
  • Provider Manager / runtime selection / session resume
  • backend/skills/ (YAML skills)
  • backend/strategies/ (*.strategy.md, .template.md, knowledge-*)
  • Code-aware analysis / CodeRef / source lookup
  • perfetto/ui/src/plugins/com.smartperfetto.AIAssistant/ (frontend)
  • scripts/ / backend/scripts/ (tooling, generators)
  • .github/workflows/ (CI)
  • Docs only
  • Tests only

Done Conditions

  • I preserved unrelated local changes
  • I did not hardcode prompt content, MCP tool lists, Skill counts, or scene lists
  • I kept chat/report/CLI/snapshot evidence boundaries intact where AI output is affected
  • I included any extra targeted test command needed for this change in the test plan below
  • New .ts / .yaml / .sh / .strategy.md files carry SPDX AGPL v3 header

Test Plan

image image

Risk / Rollback

Notes for Reviewers

wustdb added 4 commits July 22, 2026 13:55
Integrate qoder-agent-sdk as the fifth production runtime alongside
Claude, OpenAI, Pi, and OpenCode. Includes engine implementation,
provider manager connection fields, session snapshot state, env
credential detection, and .env.example documentation.
Refresh the committed frontend prebuild from v57.2-11d1f2c7d to
v57.2-7558f6587 and advance the perfetto submodule gitlink to match.
Bundles updated trace_processor.wasm, engine_bundle.js, and
frontend_bundle.js assets.
Advance the perfetto submodule gitlink to pick up the provider test
type fix in the AI Assistant plugin. Submodule commit pushed to the
fork remote before the root gitlink was staged.
- Tighten tool/permission/env boundaries: remove allowDangerouslySkipPermissions,
  set tools:[], add env whitelist via buildQoderSdkEnv()
- Fix SkillExecutor construction to use canonical positional signature
- Wire full shared MCP context (plan, hypotheses, uncertainty, comparison, etc.)
- Parse SDK result discriminated union (success/error_max_turns/error_during_execution)
- Implement session resume/snapshot via sdkSessionId capture from system init
- Fix Provider UI Qoder selection/edit chain (currentRuntime, normalize, fields)
- Add qoderRuntime.test.ts (16 tests) and update snapshotRuntimeStateInventory
- Document SDK install strategy in .env.example
@wustMeiming
wustMeiming force-pushed the main branch 2 times, most recently from bfcee81 to 8fcb85c Compare July 22, 2026 08:27
console.log writes to a pipe asynchronously and can be dropped when the
launcher exits immediately after, causing a rare flake where the lifecycle
test reads a non-integer PID. Write the PID with writeSync(1) so it is
always flushed, and surface raw stdout/stderr in the test assertion.
@Gracker
Gracker merged commit 919ff08 into Gracker:main Jul 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants