Commit Graph
11939 Commits
Author SHA1 Message Date
Peter Steinberger d65e712b28 feat(macos): enable native node session hosting (#131717)
* feat(macos): enable native node session hosting

Complete the app-owned node worker connection lifecycle and honor explicitly admitted Full access without bypassing node-local restrictions. Preserve one node identity, native capabilities, approval lifetime, and exact placement/turn authority.

* test(nodes): exercise canonical exec policy flows

* refactor(macos): remove obsolete node bridge serializer

* fix(nodes): bind Full authority to harness execution commands
2026-08-28 07:11:12 -07:00
Peter Steinberger 83dce46a7d fix(update): preserve sealed service definitions during code updates (#131021)
Separate code-update ownership, effective launcher identity, native service control, and definition mutation. Guard actual definition publication before related config or token writes, and use the installed CLI's preserve-definition restart with renewed ownership and live port/version/build verification.

Consolidate unit/environment publication and conditional rollback, retain main's plugin convergence and fresh-Doctor ownership, and make post-core child termination belong to the winning completion path. Integrate current-main heap-argument provenance and process-marker handling; resolve the service Node from the executable rather than counting backward through flags.

Retain boundary-level sealed/writable/unknown/foreign, mount, platform, failure, and build-identity proof while consolidating redundant tests. The QA cleanup removes 399 maintained test/support lines; focused current-main integration proof passes 1,279 tests with one pre-existing platform skip. Production and installer growth remains +239 net.

Preserves the reviewed repair from ac86fdff61da9c0fea9f62da00a8c9f22df6790d while integrating main at 56d89073dd. No permission weakening, schema or lease policy change, deployment, or release.
2026-08-28 07:10:42 -07:00
Vincent Koc 1186e6a6f3 feat(release): seal full release candidate evidence (#131751)
* feat(release): seal full release candidate evidence

* fix(release): harden candidate evidence validation

* test(release): cover candidate digest tuples

* fix(release): retain candidate tooling closure

* test(ci): refresh release candidate guard inventories

* test(release): decouple candidate workflow fixture
2026-08-28 21:44:21 +08:00
5edb54e616 fix(agents): keep option-only Code Mode configs disabled (#131407)
* fix(agents): require explicit code mode activation

Restore the stable default so Code Mode stays disabled unless enabled is explicitly true or auto.

Worked on by:
- @VACInc

Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com>

* test(ui): stabilize typography picker changes

---------

Co-authored-by: roboclaw-bot <309084314+roboclaw-bot@users.noreply.github.com>
Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com>
2026-08-28 06:42:19 -07:00
Peter Steinberger 0c35375958 fix(cron): distinguish intentionally suppressed deliveries (#131774)
Use the recorded suppression reason for human list and show status while preserving genuine delivery warnings and JSON contracts. Related: #111851. Thanks to @akalsey for the report.
2026-08-28 06:40:13 -07:00
Peter Steinberger b03d2e79e9 fix(sessions): prevent participant misattribution in Activity (#130986)
* fix(sessions): preserve participant identity and input provenance

Keep profile, agent, remote, observed, and legacy identities distinct in the existing participant table. Record accepted input at admission, including steering, instead of inferring a person from the session creator. Preserve historical membership and counts while leaving ambiguous profile timestamps unknown through stopped-writer Doctor migration.

Project full visibility-filtered person membership before preview limits so Activity does not misattribute channel identities or omit people outside the facepile. Keep participant membership separate from authorization and expose raw-selector ambiguity to memory operators.

Repair Doctor readiness reporting, generic Swift inline-union generation, direct-dispatch metadata handling, and fixture-owned database lifetimes. Verify namespace collisions, real provider input, accepted steering, visibility, backup/migration/reopen boundaries, native decoding, and the built-CLI lifecycle.

Fixes #130661

* fix(macos): isolate readiness and discovery lifecycles

Keep readiness fixtures private for their entire lifetime and give health readiness one deadline owner. Start and cancel slow host discovery with active discovery, not model construction.

Make native protocol, callback, onboarding, and process-cleanup tests observe their intended lifecycle phases without expanding deadlines or weakening assertions. Correct the documented signing default.

Validated with 1,839 parallel native tests, the release product build, causal negative controls, pinned Swift lint/format checks, and fresh isolated autoreview. Native production delta: -5 lines.

* docs(macos): clarify app profile isolation boundaries

* build(protocol): refresh generated Swift install models

* fix(protocol): preserve optional literal field presence

* fix(ci): bound SDK declarations and isolate test lifecycles

Discover the current declaration source graph in a joined child before normal eager emission, and track its complete source-bearing cache inputs. Repair shared jsdom focus teardown and native worker fixture request ordering without changing UI focus ownership or execution fallback policy.

* test(sessions): prove Goal participant upgrade boundaries
2026-08-28 06:04:18 -07:00
xingzhouandPeter Steinberger 0e16f347ea fix(code-mode): host-policy denial no longer triggers read-only recovery (#131007)
* fix(code-mode): preserve ordinary recovery after host denial

Record exact host-owned operation no-start and preserve it through subscriber completion. Keep whole-cell mutation containment and attribute the temporary recovery instruction to OpenClaw.

Fixes #130274. Thanks to @tylerbrevard for the report.

Co-authored-by: zhang-guiping <zhang.guiping@xydigit.com>

* test(agents): await raw-stream append completion

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: zhang-guiping <zhang.guiping@xydigit.com>
2026-08-28 05:05:55 -07:00
Peter Steinberger b029a959db fix(update): avoid declaration build timeouts on dev updates (#131746) 2026-08-28 05:05:34 -07:00
Peter Steinberger d7e280fcf6 fix(http): deliver body rejection responses before closing uploads (#131724)
* fix(http): deliver body rejection responses before closing uploads

Centralize bounded rejection transport and ordered connection admission, preserving Node response framing, upgrade flow ownership, and Feishu anomaly diagnostics. Remove duplicate request teardown and expose the shared custom-envelope rejection helper. Related: #126808, #126818.

* test(http): keep rejection fixtures typed and scoped

Prove queued responses exist before use and move the abort-activity test into its own file with shared signing/account fixtures. Preserve all wire assertions and clarify the Node HEAD callback contract.

* fix(http): preserve incoming request ownership across consumers
2026-08-28 05:01:17 -07:00
Peter Steinberger adfe56e302 fix(control-ui): preserve inherited reasoning after history refresh (#131613)
* fix(control-ui): preserve inherited reasoning after history refresh

* fix(gateway): scope prepared thinking policy to history

* fix(gateway): keep profile history metadata nonblocking

* fix(ci): isolate catalog discovery ordering from worker startup

* chore(ci): defer ingress lint repair to merged owner fix
2026-08-28 04:55:10 -07:00
Peter Steinberger 2059ea9dfc fix(codex): persist every completed pre-steer assistant item in steering history (#131606)
* fix(codex): persist every completed pre-steer assistant item in steering history

The steering transcript prefix reused the final-answer selection barrier,
so a steer consumed after a tool or sleep barrier persisted only the
latest eligible completed assistant item. Earlier completed items stayed
in the gateway run buffer with no durable row, and after a reload the
UI's persisted-prefix subtraction could not cover them — already-seen
pre-steer output re-rendered below the operator's steering message.

Final-answer selection and steering history are different concerns: the
steering path now collects every completed, terminal-eligible, visible
assistant item in chronological order, each with its mirror identity so
repeats across subsequent steers deduplicate. Final-answer candidate
selection, its exclusion tests, terminal-result handling, and the buffer
projection are unchanged. Net +1 production line.

Regressions: four barrier scenarios (none/sleep/dynamic-tool/native-tool)
fail pre-fix losing pre-steer items; snapshot mirror-identity coverage;
UI history recovery of the split after reload.

* fix(codex): keep assistant-message options caller-owned in steering collection

Restores the caller-supplied AssistantMessageOptions contract the boundary
picker had, and tightens the collection return. Also brings the file back
under the max-lines cap that check-lint enforces (the inlined options
object pushed it two counted lines over).

* test(ui): share steering recovery fixtures across identities
2026-08-28 04:52:26 -07:00
Peter Steinberger c85129f855 fix(codex): keep native overrides effective at launch and turn start (#131745)
* fix(codex): keep native overrides effective at launch and turn start

Preserve native CLI argument ordering and temporary-root exclusions across
launch and turn preparation, including commented TOML booleans.

Fixes #131741.

* fix(codex): remove type-only launch configuration cycle

Import the existing launch options contract directly, preserving identical
runtime output while removing the config barrel dependency cycle.
2026-08-28 04:43:16 -07:00
Vincent Koc d3a5f2333e fix(ci): allow crabbox proof across forward main (#131738) 2026-08-28 19:41:40 +08:00
70eb4a71ac fix(ui): usage page stays loading after cache rebuild (#108270)
Co-authored-by: Alex Knight <15041791+amknight@users.noreply.github.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-28 04:39:48 -07:00
Peter Steinberger c792a16791 fix(agents): allow uncategorized hidden and ACP spawns (#131736) 2026-08-28 04:37:44 -07:00
Vincent Koc c28cb02384 fix(release): resume failed validation without repeating green jobs (#128141)
* fix(release): resume failed FRV child attempts

* fix(release): harden FRV continuation controller

* fix(release): bind FRV continuation source evidence

* fix(release): support historical FRV source evidence

* fix(release): bind historical FRV source inputs

* fix(release): bind historical FRV source evidence

* fix(release): preserve historical FRV source identity

* fix(release): align FRV continuation CI checks

* fix(release): disable fail-fast for FRV continuations

* test(release): align FRV fail-fast expectation

* fix(release): classify missing FRV artifacts centrally

* fix(release): recover FRV state from workflow artifacts

* fix(release): overwrite recovered FRV plan artifact

* docs(release): clarify FRV plan recovery

* fix(release): harden FRV continuation recovery

* fix(release): revalidate FRV tooling ref before dispatch

* fix(release): authenticate historical FRV plans

* fix(release): fail FRV when temporary ref cleanup fails

* test(ci): update FRV workflow routing expectations

* fix(release): declare FRV workflow ref helper

* fix(release): keep FRV recovery on the same parent

* fix(release): verify original dispatch on parent recovery
2026-08-28 19:35:10 +08:00
Peter Steinberger ca59305029 fix(gmail): keep setup command failures readable (#131502)
* fix(gmail): keep setup command failures readable

* test(gmail): consolidate setup diagnostics coverage

* docs(ci): clarify Swift test execution policy

* test(brave): cancel requests at the transport boundary

The in-flight cancellation fixture polled for fetch within one second, but
first-use runtime and DNS preparation can exceed that deadline. The first
case then exited without aborting or awaiting its request, leaking it into
the next case's global fetch mock (CI run 33118704789).

Abort from the existing mocked transport after its listener is registered,
await terminal rejection, and retain exact call-count and aborted-signal
assertions. No production behavior, timeout, or SDK mock changes.

(cherry picked from commit 697040a81eeb26a8ea947cec01b544125c3d98c0)

* test(openshell): keep mirror socket fixtures within platform limits

The wrapper's canonical macOS temp root makes the nested socket fixture
exceed the 104-byte sockaddr_un.sun_path field, failing at listen before
mirror reconciliation. Shorten the existing temporary-directory prefix
without changing the socket name, assertions, cleanup, or production code.

* refactor(channels): reuse ingress stop guard
2026-08-28 04:33:50 -07:00
Peter Steinberger 047470456f feat(control-ui): create and manage goals without slash commands (#131370)
* feat(control-ui): create and manage goals without slash commands

* fix(control-ui): keep goal composer contracts acyclic

* refactor(control-ui): tighten goal composer guidance

* fix(goals): admit fresh and completed local sessions

Create the first session with its Goal, input, run claim, and receipt in the existing transaction. Scope reply dispatch hooks consistently at admission and execution, and retain built-in runtime eligibility after completed turns. Preserve creator and lifecycle checks and cover the failures observed through the real Control UI flow.

* fix(ui): preserve button names during fade-in

* docs: defer Goal release notes to release generation
2026-08-28 04:31:48 -07:00
Vincent Koc 240b485326 fix(release): bound FRV polling cadence (#131714) 2026-08-28 19:31:25 +08:00
Peter Steinberger ad189b0a53 fix(ui): prevent duplicate answers while runs finish (#131681)
Keep persisted assistant answers visible once while workspace reconciliation is still finishing. Reconcile durable same-run prefixes at persistence and delta ingress, preserve stream baselines, and publish error-terminal answers through the transcript reducer without hiding workspace failures.

Fixes #131671. The separate malformed non-prefix stream observation remains outside this repair.
2026-08-28 04:28:48 -07:00
3f749b97ca fix(update): route stored dev channel to the git update flow [AI-assisted] (#123083)
* fix(update): route stored dev channel to the git update flow [AI-assisted]

A package-detected launcher with a stored update.channel: dev resolved the
npm "dev" dist-tag (which does not exist -> ETARGET) because switchToGit
only honored an explicitly requested --channel dev. Base the decision on
the effective channel and collapse the duplicated selectedChannel/channel
computation, which is provably identical in every reachable case.

Refs #123073

* docs(update): state the dev-channel git contract in the routing comment

Review finding: "dev" can exist as a rare npm dist-tag, so the comment
must not claim it never does; the routing rationale is the documented
dev-channel git-checkout contract.

* fix(update): keep one-off --tag on the package path for stored-dev installs

--tag is documented as a one-run package-target override, so a stored dev
channel must not divert a tagged update into the git flow (where the tag
is ignored). An explicitly requested --channel dev still outranks the tag,
matching existing explicit-channel behavior.

* test(update): scope the package-to-git clone to a per-case OPENCLAW_GIT_DIR

The stored-dev routing case performs a real transactional clone. On the
default <home>/openclaw that directory outlived the case and made a later
test fail with "OPENCLAW_GIT_DIR appeared while cloning".

Test Plan: node --import tsx scripts/test-projects.mts src/cli/update-cli.test.ts
Failing set now matches clean origin/main exactly (3 pre-existing macOS
$TMPDIR symlink failures, unrelated to this change).

Assisted by an AI coding assistant; reviewed before submitting.

* test(update): verify stored dev routing on installed packages

Temporary expected-failure verification for #123073. Restore only the routing owner to its pre-fix bytes while retaining the original contributor commits and adding installed-package regression coverage. This head must not merge; restore the reviewed fix and require hosted green proof after capturing the intended failure.

* fix(update): restore stored dev routing after regression proof

Restore the contributor's canonical effective-channel fix after the
installed-package regression lane reproduced package routing for stored
dev. Keep one-off tags on the package path and explicit dev precedence.

Remove the obsolete source-text assertion now covered by installed CLI
behavior and format the CI documentation table. Preserve all original
contributor commits. Fresh hosted GREEN validation remains required.

Co-authored-by: Chinmayrawat15 <chinmayrawat15@gmail.com>

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: Chinmayrawat15 <chinmayrawat15@gmail.com>
2026-08-28 03:52:36 -07:00
Peter SteinbergerandAmp df905a6cb6 fix(sessions): preserve shared history across startup and repairs (#127241)
* fix(doctor): atomically repair session transcripts

* fix(sessions): keep runtime reads and repairs on SQLite owners

Resolve physical session databases once and carry that identity through startup, search, boards, maintenance, and Doctor. Remove automatic legacy JSON import from Gateway startup while preserving explicit Doctor upgrades.

Publish repaired legacy transcripts with strict atomic replacement and preserve the source when backup, write, or rename fails.

* fix(sessions): simplify startup ownership and diagnostics

* test(sessions): migrate legacy history through Doctor in CLI proof

---------

Co-authored-by: Amp <amp@ampcode.com>
2026-08-28 03:32:53 -07:00
Peter Steinberger d6e1f019f0 fix(gateway/ui): record model auth unavailability reasons; gate composers only on actionable auth failures (#131697)
* fix(gateway): preserve model auth unavailability reasons

Record missing credentials, unusable auth, and cooldown separately from unknown availability. Carry native runtime auth facts and retry times through the additive models.list projection without changing protocol versions.

* fix(ui): gate composers only on actionable auth failures

Read producer availability reasons in chat and new-session gates. Preserve Model Setup for missing credentials, keep accurate rejection copy, and allow sending during cooldown or unknown availability. Keep unavailable picker options disabled.

* fix(gateway): distinguish permanent auth rejection from cooldown

Keep permanently rejected profiles and inline credentials actionable without a retry timestamp. Use only viable transient profiles for the earliest recovery time, preserving explicit profile retry behavior.

* test: isolate submit gates and native runtime availability fixtures

Extract the existing submit-gate suite and shared draft fixture to stay within the file-size limit. Supply registered CLI metadata through the existing test boundary so availability checks do not cold-load executable plugin setup code.

* chore(protocol): regenerate Swift gateway models for availability reasons

* test(gateway): expect availability reasons in models.list projections
2026-08-28 03:18:43 -07:00
Vincent Koc 444bc22f0d fix(ci): let publisher own Crabbox proof (#131635)
* fix(ci): let publisher own Crabbox proof

* test(ci): narrow Crabbox workflow install step
2026-08-28 18:11:48 +08:00
bc39f51a48 fix(agents): preserve owned Code Mode source in transcripts (#129816)
Preserve prepared outer JavaScript and TypeScript source through the owning transcript append while retaining input credential masking and canonical SQLite cache agreement. Related context: #129812 remains open for the separate Copilot journal path.

Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: Alexander Hill <me@alexander-hill.me>
2026-08-28 03:10:03 -07:00
Peter Steinberger b576bb41cf fix(usage): retain reset history and unify accounting (#131667)
* fix(usage): retain reset history and unify accounting

Keep family selection within the recorded agent and assign each instance once.
Carry discovered SQLite or JSONL sources into batched loading, including empty
current sessions and history encountered before a current artifact.

Share Gateway and Control UI aggregation and total arithmetic, use canonical
pricing for detail logs, and invalidate both result caches on config changes.
Split calendar, cache, selection, and loading owners out of the usage handler.

Add failing-before regressions for reset history, overlapping families, mixed
sources, config replacement, missing-price exports, and log pricing.

* refactor(usage): keep accounting type imports acyclic

Make batched loading own its minimal input contract and import shared accounting
types from the leaf definition instead of the runtime barrel. Remove obsolete
current-JSONL fixture setup to keep the existing usage test within its line cap.

Verified both CI failures locally: zero Madge cycles and passing core lint with
the CI tsconfig. No runtime behavior or public protocol changes.

* refactor(usage): remove unused accounting type re-exports

The shared usage contracts now import their canonical leaf definitions. Remove
the six obsolete internal-barrel type re-exports left by that ownership repair.
2026-08-28 03:00:19 -07:00
Peter Steinberger de12e0a06c feat(approvals): standing-grant ledger, revocation, and configurable terms (#131602)
* feat(approvals): standing-grant ledger, revocation, and configurable terms

Completes the operator half of cron standing grants (#129526):

- Grants are listable and revocable. New gateway methods
  exec.approval.grants.list/revoke (operator.approvals scope), CLI
  'openclaw approvals grants list|revoke', and a Standing grants section
  on the Control UI approvals page with per-row revoke. Revocation is
  idempotent, records the acting client, and takes effect at the next
  occurrence's spawn boundary.
- Grant terms are frozen at mint and configurable. Default stays
  until-revoked (matching what shipped Always allow has always meant);
  tools.exec.grantExpiryDays sets a day-bounded default for future
  grants (enterprise fleet policy), and resolve surfaces may override
  per grant via grantExpiresInDays / --expires-in-days. Existing grants
  keep their minted terms; config changes are never retroactive.
- expires_at_ms goes nullable (NULL = until revoked). The mandatory-
  expiry shape never reached a release tag, so the lazy ensure rebuilds
  it in place; grants are re-derivable authority, so the fail-closed
  cost is one re-prompt.
- Approval cards say what Always allow does. Automation approvals carry
  a standing-grant ApprovalScope (new union member) built server-side
  from the cron run registry (now carrying the job display name); the
  Control UI inbox card and modal render it via i18n, e.g. 'Always
  allow runs this exact command for "grant-demo" without asking, for
  10 days (revocable)'.
- Aux method registries stay in lockstep: new parity test fails when a
  GATEWAY_AUX_METHODS entry lacks a lazy handler (this gap produced
  live unknown-method errors during bring-up).

Live-proven on a hermetic gateway: until-revoked grant ran 62 promptless
occurrences; UI and CLI revocation each returned the prompt on the next
occurrence; config default stamped exactly 10.0 days via a UI resolve;
--expires-in-days 99 override stamped 99.0 days; ledger and card
screenshots captured from the running Control UI.

* chore(ui): annotate the scope narrowing assertion for the safety ratchet

* test(gateway): move aux-method parity check to its own suite

* fix(ci): boundary-parse UI approval scope; register grants schemas for native codegen

- The Swift/Kotlin generators discover named schemas through the
  protocol schema fragments; the standing-grant scope member and the
  grants list/revoke shapes were missing there, which made the Swift
  generator silently drop the ApprovalScope union and broke ios-build.
  Registered, regenerated, union and new struct emitted again.
- The chained-assertion lane rejects 'as unknown as' in the UI scope
  parser; replaced with a real per-kind boundary parser, which is what
  the rule asks for.
- The sqlite-allow-raw marker must share the line of a mid-statement
  prepare() call for the Kysely guardrail; split the pragma read so the
  SAFETY comment and the allow marker each sit on their own guarded
  line.

* chore(ui): record startup-budget growth for the approvals scope line

The standing-grant scope renderer and grants-ledger strings ride the
boot path (~700 B gzip). Recorded via the check's --update-baseline flow
with the reason inline; well under the committed 350 KiB hard cap.

* fix(gateway): restore the channel-restart helper export dropped on main

#118157 made startGatewayChannelFromActiveRegistry module-local while
its colocated test still imports it, breaking check-test-types and the
compact shard on every merge ref. Smallest correct main heal per the
broken-CI doctrine; the test passes again.

* fix(gateway): drive channel-restart reload coverage through its exported owner

Replaces the prior export restore: #118157 made the restart helper
module-local (the dead-export scan is right that tests are not
production consumers), but left its colocated test importing it, so
main failed check-test-types either way. The test now exercises the
same preserveManualStop semantics through rollbackStoppedGatewayChannels,
the exported reload owner, and the helper stays private.

* test(ui): answer the grants ledger request in approvals-page history tests

The approvals page now loads the standing-grant ledger next to history;
a method-aware stub answers it out of band so the ordered history mocks
keep their call counts. Adds coverage for the ledger render and the
revoke round-trip.

* chore(ui): record CI-observed startup-JS baseline for the grants surface

The e2e-real-gateway lane builds the same tree ~600 B larger than checks-ui
and local builds, past the 64 B variance allowance; record the CI-observed
value so the enforcement limit stops straddling cross-lane build variance.

* fix(cli): escape standing-grant ledger fields visibly; register grants methods in inventory tests

The grant ledger's revokedBy (client display name), automation label, and
agent-authored command now go through escapeApprovalTextForTerminal like the
pending-approvals table, so hostile control characters render as visible
\u{...} escapes instead of being silently stripped by the table renderer.
Regression test fails pre-fix. Also lists exec.approval.grants.list/revoke
in the 2026.8 release-train roster, classifies the approvals grants command
group for JSON output, and fixes the stubGrants mock typing.
2026-08-28 02:56:20 -07:00
Peter Steinberger 3fb0ba15e9 fix(gateway): reduce memory pressure with large session histories (#131653)
* fix(gateway): reduce transcript memory pressure and preserve heap controls

Avoid overlapping raw SQLite rows and transcript serialization copies while
preserving complete fenced snapshots, provenance, callbacks, and reset hashes.
Scale managed Node Gateway budgets with host capacity, preserve operator heap
ownership, and keep service repair and macOS ownership aware of native flags.

* fix(daemon): preserve heap controls after named preloads
2026-08-28 02:28:34 -07:00
Vincent Koc b4117f26ac fix(ci): cache Robolectric SDK artifacts (#131628) 2026-08-28 17:27:52 +08:00
Peter SteinbergerandRatul Rahman 3f31f271d5 fix(skills): recognize binaries installed on unchanged PATH (#131617)
Cache only successful binary probes so fresh skill and Gmail dependency
checks recognize executables installed into existing PATH directories.
Preserve hit reuse and PATH/PATHEXT invalidation; cover dependency setup,
Go/uv prerequisite reuse, and skill/hook eligibility.

Related: #21094. Follow-up to the positive-only proposal in #21116.
Thanks to @DannyDesert for the original skill-install report.

Co-authored-by: Ratul Rahman <146240529+ratul-rahman@users.noreply.github.com>
2026-08-28 02:21:32 -07:00
Peter Steinberger 2d625dad30 fix(config): ignore discarded SecretRefs when applying batches (#131656)
* fix(config): validate surviving batch values through one mutation flow

* fix(cli): drain config failure output before exit

Unwind already-reported config failures through the shared CLI finalizer so resources close and piped JSON drains before the requested exit. Preserve injected runtime ownership and avoid rendering typed exits twice. Cover full 1 MiB pipe output, exact status, and config error contracts.

* refactor(config): make snapshot validation throw on failure
2026-08-28 02:21:23 -07:00
Peter Steinberger 6d04ee6e7d fix(plugins): prepare standalone source artifacts for native imports (#131615)
Add explicit source setup for already-built standalone plugin artifacts after source dependency pruning. Reuse guarded declared-host linking without rebuilding artifacts or changing compilation, managed installs, discovery, or Doctor behavior.

Fixes #131611.
2026-08-28 01:58:08 -07:00
0790f563f9 fix(providers): keep discovered image support for configured models (#125670)
* fix(providers): preserve discovered model input capability

Co-authored-by: qingminlong <qing.minlong@xydigit.com>

* fix(providers): preserve discovered input capabilities

---------

Co-authored-by: qingminlong <qing.minlong@xydigit.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-08-28 16:51:02 +08:00
Peter Steinberger 9fd5cba00f fix(macos): stop companion commands when their caller is cancelled (#131650)
Bind native exec-host requests to their accepted socket and process lifetime so cancellation, disconnect, and app shutdown stop the owned command tree. Preserve normal half-close responses and existing approval policy. Fixes #131642.
2026-08-28 01:48:54 -07:00
Peter Steinberger 14d6bb81ad fix(memory): forget diary claims after session backfill (#131626) 2026-08-28 01:48:08 -07:00
Peter Steinberger c6c2268034 perf(plugins): unify progressive plugin cache ownership (#131442)
* fix(gateway): stop rediscovering plugin metadata while running

* perf(plugins): unify progressive plugin cache ownership

* test(plugins): cover shared registry migration reads

* fix(plugins): reuse bundled channel metadata snapshots

* test(gateway): exercise channel rollback through public boundary
2026-08-28 01:46:59 -07:00
f7a9a361d9 feat(comfy): support custom headers and per-request seed randomization (#130098)
* feat(comfy): support custom headers and per-request seed randomization

Local-mode ComfyUI requests only ever sent Content-Type, so a local
instance reachable behind HTTP auth (Basic auth, a bearer token) had no
way to authenticate. Add a generic headers config key, merged over the
plugin's own headers -- same shape as the ollama plugin's established
remote.headers pattern, rather than inventing a comfy-specific scheme.

Also add optional seedNodeId/seedInputName: without it, a static
workflow file's sampler seed never changes between submissions, so
every generation was silently identical whenever the operator's
workflow relies on a fresh random seed per run.

* fix(comfy): resolve headers through the SecretInput path, not plaintext-only

The new headers config accepted only literal strings, so a credential-bearing
value (Authorization for a gated ComfyUI instance) had no path to secret
storage -- unlike the existing apiKey field, which already resolves through
resolveSecretInputString with an env-backed fallback. Mirrors that same
pattern per-header, plus the ollama plugin's established header-secret
precedent: a header pointed at a SecretRef that can't be resolved fails the
request outright instead of silently sending it unauthenticated.

* fix(comfy): resolve non-env header SecretRefs, hide capability on unresolvable ones

resolveComfyHeadersConfig only ever resolved env-sourced SecretRefs (a
manual process.env fallback bolted onto inspect-mode); any file,
keychain, or plugin-backed reference always threw, despite the schema
and docs advertising the same SecretRef shape apiKey accepts. Now
resolves through resolveConfiguredSecretInputString (the same async
resolver the ollama plugin's own headers use) for the non-literal case,
so a real non-env credential provider actually works.

Separately, isComfyCapabilityConfigured returned true for local mode
without ever inspecting headers, so an unavailable Authorization
SecretRef advertised an image/video/music tool that would always throw
on invocation. Extends the same sync inspect-based veto
resolveComfyApiKey already applies for cloud mode's apiKey.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vk2cBRQdErwRtPea8VuhG6

* fix(comfy): don't veto a resolvable non-env header secret from provider selection

hasUnavailableComfyHeaderSecret treated any non-env SecretRef as
unavailable for the isComfyCapabilityConfigured gate, on the theory that
inspect mode can't confirm it -- but "can't confirm yet" isn't "won't
resolve": the async request path can and does resolve a real
file/keychain/plugin-backed ref. That made a perfectly valid,
already-working header credential permanently hide the image/video/music
tools from the agent, which is a worse outcome than a rare genuinely
broken ref surfacing its error at actual invocation. Only a definitely
missing/empty env var (decidable synchronously, no I/O) still vetoes.

Added a permanent committed integration test
(workflow-runtime.header-secrets.integration.test.ts) that proves this,
plus the env/non-env header resolution and fail-closed paths, over real
sockets with no SDK/ssrf-runtime mocking -- replacing the throwaway
proof script from the previous push, which was deleted after running and
therefore not rerunnable or reviewable.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vk2cBRQdErwRtPea8VuhG6

* fix(comfy): register header SecretRefs in the plugin secret contract

headers.* accepts and resolves SecretRef values, but the manifest never
declared configContracts.secretInputs for that path -- the canonical
plugin secret lifecycle (startup materialization, owner diagnostics,
audit/configure discovery, resolved-value redaction) only walks
manifest-declared paths, so this credential surface was invisible to
all of it despite working correctly at request time. apiKey doesn't
need the same declaration (it's covered by the separate, already-wired
provider-auth system via setup.providers.envVars/providerAuthChoices);
headers.* has no other declaration path.

Also fixes two smaller findings from the same review pass: the
seed-injection test asserted the freshly-generated seed is nonzero,
but randomInt(RANDOM_SEED_EXCLUSIVE_MAX) legitimately can (rarely)
return 0 -- a flaky assertion, removed; and documents that a configured
Content-Type header is ignored specifically on image-upload requests,
where the multipart boundary must come from the runtime.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vk2cBRQdErwRtPea8VuhG6

* docs(secrets): register comfy header SecretRefs in the credential matrix

The comfy plugin manifest change in e32863dc6cd registered
plugins.entries.comfy.config.headers.* as a secret-input target, but the
generated docs matrix and its paired markdown list weren't refreshed to
match, breaking the docs-sync CI check.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vk2cBRQdErwRtPea8VuhG6

* test(comfy): restore inherited header proof env

* fix(comfy): redact reflected request credentials across generation failures

Reuse the Ollama exact-header redactor through the provider HTTP SDK, scrub structured and truncated diagnostics before retaining them, and cover decoded Basic credentials observed in real ComfyUI proxy failures. Preserve optional header and seed behavior while consolidating tests and documenting the shared boundary.

Co-authored-by: Markus Hartung <mail@hartmark.se>

* fix(provider-http): handle optional Node header values safely

Skip undefined HeaderRecord values allowed by Node types and document the intentional omission of unsafe parser causes in the lint exception. Actual credential and no-header error behavior remain unchanged.

Co-authored-by: Markus Hartung <mail@hartmark.se>

* test(comfy): explicitly stringify reflected proxy header values

Keep the socket fixture compatible with the IncomingHttpHeaders union without changing its reflected-error behavior.

Co-authored-by: Markus Hartung <mail@hartmark.se>

* test(provider-http): register credential-safe parser error exception

Track the intentional preserve-caught-error suppression in the explicit inventory: raw JSON parser causes can quote request credentials. The focused inventory and provider HTTP tests pass; runtime behavior is unchanged.

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-28 01:40:22 -07:00
Peter Steinberger 8b7a6a99f4 fix(delivery): preserve retry budget when producer claims expire (#131614) 2026-08-28 01:39:38 -07:00
Peter Steinberger 0294c7fdc9 refactor(system-agent): unify operator handoffs and proposal lifecycle (#131630) 2026-08-28 01:32:47 -07:00
NonoswordandAyaan Zaidi ae499904b0 fix(lobster): preserve cancelled approvals and output bounds (#130259)
Keep managed Lobster state aligned with rejected approvals and enforce the configured byte limit on the JSON returned to the model.

Co-authored-by: Nonosword <37948612+Nonosword@users.noreply.github.com>
Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-08-28 13:53:37 +05:30
Peter Steinberger 3234bb295d docs(plugins): clarify installed entrypoint source fallback (#131640) 2026-08-28 01:16:17 -07:00
Ayaan GazaliandPeter Steinberger 0bb870a40a fix(channels): bundled channels reject the documented mediaMaxMb override (#118157)
* fix(channels): enforce documented media limits at byte boundaries

Resolve canonical account caps at native byte consumers, publish QA attachments durably, and refresh global media policy without resurrecting manually stopped accounts. Preserve existing local survivor warnings, remote batch atomicity, transport ceilings, and contributor schema work.

Co-authored-by: Ayaan Gazali <ayaangazali.work@gmail.com>

* fix(qa-channel): serialize preview changes with durable delivery

* test(qa-channel): reuse the typed deferred helper

* fix(auto-reply): retain media captions when block streaming is off

Resolve disabled block delivery at message-end so suppressed text callbacks cannot strip the later attachment caption. Preserve enabled break modes and per-turn precedence using the existing boolean owner.

* docs(streaming): clarify captions with block delivery disabled

* test(media): rebalance bounded core typecheck shards

Keep the existing 720-root ceiling and exact-once canonical coverage by moving media tests into the messaging shard. The plugin/platform shard reached 721 roots with the new media contract coverage; the new allocation is 682 and 526 roots. No runtime or test assertions change.

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-28 00:07:56 -07:00
Vincent Koc 02e8d29231 fix(ci): bind Crabbox proof to publisher main (#131572) 2026-08-28 15:07:18 +08:00
Peter Steinberger 0da947dbf0 fix(gateway): preserve config receipts across reload supersession (#131545) 2026-08-28 00:00:53 -07:00
Peter Steinberger 345b2235e3 fix(gateway): admin-only roles reject valid scope upgrades (#131410)
* fix(gateway): honor scope implications in operator role ceilings

Allow admin-only named roles to approve valid Control UI scope upgrades and preserve already-granted implied scopes across WebSocket, HTTP, and plugin-cookie authorization. Recheck the current role before releasing approved tokens and retain existing denial and scope-cap boundaries.

* fix(gateway): cap default plugin runtime scopes by role

Reuse the existing implication-aware HTTP ceiling for plugin default grants across HTTP and upgrades. Keep ordinary defaults write-only, deny read/empty roles, and preserve explicit headers and shared-secret behavior.

Add durable-profile boundary regressions and preload the real Control UI test owner outside request deadlines after measuring cold-import timeouts.

* test(gateway): bound plugin upgrade fixture payloads
2026-08-27 23:51:24 -07:00
f466dc0dcf fix(release): consent to staged Codex onboarding companion (#131298)
* fix(release): consent to staged Codex onboarding companion

* fix(e2e): prepare reviewed onboarding plugins explicitly

Use the shared command-help consent helper for the reviewed Codex and
external channel fixtures. Keep exact staged Codex versions pinned, use
official catalog selectors for published packages, and preserve historical
automatic setup when the candidate CLI lacks capability consent.

Replace source-order assertions with shell boundary coverage and document
reviewed plugin preinstallation before retrying noninteractive setup.

Co-authored-by: Dallin Romney <dallinromney@gmail.com>

* fix(e2e): preserve official provenance for candidate channels

Stage the selected Discord or Slack companion with Codex in the verified
prerelease registry and install its exact pinned npm spec after onboarding.
The former npm-pack path installed matching bytes but could not establish
the official provenance required by trusted plugin state APIs.

Remove local archive packaging and install overrides. Reject missing or
mismatched source companions before CLI use while keeping published catalog
selection and historical automatic setup unchanged.

Co-authored-by: Dallin Romney <dallinromney@gmail.com>

* fix(e2e): preserve frozen channel candidate registry

Keep the immutable Codex registry artifact unchanged and serve source Discord/Slack tarballs as separately validated exact npm packages. Remove source install overrides and fail closed without the mounted registry.

Co-authored-by: Dallin Romney <dallinromney@gmail.com>

* fix(e2e): keep candidate plugins in one registry

Restore the planner-owned immutable prerelease registry artifact containing Codex and the selected source channel companion. This supersedes the separate tarball mount follow-up.

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-08-27 23:35:10 -07:00
tzy-17andPeter Steinberger a29e5c9a31 fix(gateway): own standalone MCP App request lifetimes (#119388)
* fix(gateway): own standalone MCP App request lifetimes

Keep initial loading and individual MCP requests bounded without applying
a derived single-request timeout to composed App operations. Carry caller
cancellation through the HTTP request owner, isolate shared catalog waits,
and preserve bounded graceful cleanup before terminal document teardown.

Retire stale document/bootstrap responses and observe asynchronous catalog
rejections without changing authorization, public SDK contracts, or retry
behavior. Add serialized-owner regressions and real Chromium conformance.

Rewrites #119388 while preserving the contributor's report and credit.

Co-authored-by: 唐梓夷0668001293 <tang.ziyi@xydigit.com>

* test(ui): preserve rendered MCP App diagnostics without suppression

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: 唐梓夷0668001293 <tang.ziyi@xydigit.com>
2026-08-27 23:33:49 -07:00
Peter Steinberger 894cbf83cd fix(tui): keep finished runs idle after reconnect (#131487)
Reconcile complete history membership at the run coordinator while preserving concurrent runs and activity observed during history requests. Keep unknown membership distinct from an empty active set and preserve gap-recovery ordering.

Fixes #131484
2026-08-27 23:26:16 -07:00
Peter Steinberger 0ad43d1511 fix(gateway): adopt verified GitHub public profile names (#131579)
Prefer the verified GitHub public name for new or unnamed profiles and upgrade saved names only when they exactly match the current canonical login. Preserve other saved names and provider fallback on the next normal identity sync. Reuse existing GitHub requests without migration or schema changes.
2026-08-27 23:25:32 -07:00
Peter Steinberger 870ed9a5ab fix: recover active sessions across repeated gateway restarts (#131527)
* fix: recover active sessions across repeated gateway restarts

* fix: resolve recovery CI integration failures

* chore: document transcript assertion safety

* fix: finish recovery start persistence before command teardown

* test: type command fixtures with internal session state
2026-08-27 23:25:30 -07:00