Commit graph

7 commits

Author SHA1 Message Date
Sarah Fortune
4c40118d65
feat(agentsapi): preserve native output and tool history (#156182)
* feat(agentsapi): project native output and reconcile saved history

* fix(agentsapi): retain observed usage after accounting read failures

ClawSweeper: "Retain observed usage when the final REST read fails"
https://github.com/openclaw/openclaw/pull/156182#issuecomment-5789452458

Merge final REST usage with observed usage by admitted turn ID. Canonical
records replace matching contributions, while omitted turns keep observed
usage and repeated accounting does not double count them.

* test(agentsapi): cover projection usage and authoritative session receipts

* refactor(agentsapi): keep projection implementation helpers module-local

* test(agentsapi): use the projection factory and preserve fixture types

---------

Co-authored-by: Sarah Fortune <sarah.fortune@gmail.com>
2026-09-23 21:18:27 -07:00
Peter Steinberger
9db35b7514
fix(agentsapi): package the bundled plugin icon, activity mark, and agent-runtimes category (#156549) 2026-09-23 14:08:59 +00:00
Sarah Fortune
051c8871bc
feat(agentsapi): enable native live web search (#156306)
Co-authored-by: Sarah Fortune <sarah.fortune@gmail.com>
2026-09-23 07:54:02 +00:00
Sarah Fortune
31e9a02836
refactor(agentsapi): use the official OpenAI SDK (#156116)
* refactor(agentsapi): use the official OpenAI SDK

* fix(agentsapi): narrow SDK message items and update dependency lock

* refactor(agentsapi): use SDK client defaults

* test(agentsapi): identify requests without URL matching

* refactor(agentsapi): import SDK types directly

* fix(agentsapi): honor resolved reasoning effort

* docs(agentsapi): explain configured reasoning effort

* fix(agentsapi): preserve the official SDK endpoint

* fix(agentsapi): honor transport abort deadlines

* fix(agentsapi): preserve admitted SDK authentication

---------

Co-authored-by: Sarah Fortune <sarah.fortune@gmail.com>
2026-09-22 22:40:36 -07:00
Sarah Fortune
40cc8c023a
fix(agentsapi): preserve conversation context in native messages (#156167)
* fix(agentsapi): include conversation context in native messages

* refactor(agentsapi): use private attempt context helper

* refactor(agents): keep inbound context type with shared owner

* fix(gateway): preserve context for active harness messages

---------

Co-authored-by: Sarah Fortune <sarah.fortune@gmail.com>
2026-09-22 22:11:32 -07:00
Sarah Fortune
9a15bd82af
fix(agentsapi): report native turn token usage (#156092)
* fix(agentsapi): report native turn token usage

* style(agentsapi): format token accumulation

* style(agentsapi): avoid shadowing turn records

* docs(agentsapi): clarify native usage availability

* fix(agentsapi): wait for native usage settlement

* fix(agentsapi): preserve outcomes when token accounting fails

---------

Co-authored-by: Sarah Fortune <sarah.fortune@gmail.com>
2026-09-23 03:34:15 +00:00
Sarah Fortune
e9fcdb4002
feat(openai): add explicit Agents API MVP harness (#151176)
OpenClaw needs an alternative OpenAI harness that owns a hosted agent session instead of connecting to a Codex app-server session.

Add an explicitly selected Agents API plugin for hosted Linux sessions with API-key authentication, text streaming, session reuse, steering, interruption, and native idle settlement. Reuse shared binding and transcript authority, and dispatch the shared completion hooks from the actual attempt result.

Validation: required final-head CI passed; ClawSweeper accepted the real Docker authority proof and reports no remaining findings. Native Linux/arm64 Docker flows verified hosted VM execution, steering, authorized interruption, queued-input cancellation, completion-hook delivery, successor isolation, and strict transcript rejection. No local unit tests, mocks, or fakes were used.

Token accounting is best effort when terminal events omit usage. Apps, connectors, custom executors, file transfer, image generation, and additional configuration remain outside this MVP.

Co-authored-by: Sarah Fortune <sarah.fortune@gmail.com>
2026-09-22 18:51:10 -07:00