1862 Commits
Author SHA1 Message Date
Peter Steinberger b6306da1a9 fix(web-fetch): honor cancellation before caching or returning provider results (#131585)
* fix(web-fetch): honor cancellation in the provider fallback

Pass the optional AbortSignal execution context through fetch providers and the Firecrawl adapter. Reject late provider results before wrapping or caching, recheck after asynchronous payload construction, and preserve cancellation through HTML fallback recovery.

* fix(web-fetch): finalize cancellation before caching results

Reject pre-aborted cache hits and preserve cancellation when a provider or guard cleanup fails after abort. Centralize direct and provider cache publication after the complete fetch lifecycle so cancellation during release cannot leave a successful entry.

Extend all four fallback cancellation cases with late provider failures, cover direct/provider pre-aborted cache hits and guard-release races, and document the completed cancellation boundary.

* fix(web-fetch): scope the post-cancellation guard to provider failures

The cancellation guard sat in runWebFetch's catch, so a fetch that rejected
*because of* the abort had its original error replaced by signal.reason. That
discarded the transport's own failure detail and changed an existing contract:
web-tools.fetch.test.ts asserts the tool surfaces the aborted fetch's error.

fetchWebPayload already rethrows the original error when the signal aborted, so
the outer guard only ever needed to cover the provider-fallback path, where a
late failure should surface the caller's abort reason rather than an error from
work the caller had already abandoned. Move it there and drop the outer catch.

* docs(web-fetch): state cancellation forwarding and error preservation accurately

Two wording corrections from deep review. The inline comment claimed an
abort-caused fetch rejection "already carries the caller's reason", which the
regression test deliberately shows is not always true; the code preserves the
right object regardless. The docs implied cancellation stops provider work,
when core only forwards the signal and rejects late results.
2026-08-28 21:06:18 -07:00
Peter Steinberger 7ed11a4054 fix(plugin-sdk): registration leaves private declaration aliases stale (#132311) 2026-08-28 20:40:28 -07:00
Vincent Koc 048eb11252 fix(doctor): renew compatibility review dates (#132313) 2026-08-29 11:39:18 +08:00
Peter Steinberger 30772d5061 fix(sessions): preserve context and lifecycle when forking chats (#132227)
* fix(sessions): preserve fork lifecycle ownership and context

Preserve incognito storage, revalidate message-cut authority at commit, and keep late UI fork results scoped to their presentation. Carry prepared child identity and actual context through subagent cleanup and receipts. Verify native source cuts with canonical projection and preserve supervision connection and cleanup ownership. Document the separate canonical-descendant initialization limitation.

* refactor(agents): remove unused subagent prompt task input

* test(codex): validate native fork fixture request shapes

* fix(codex): avoid inherited labels in native session forks

* fix(test): align fork prompt fixtures and session type imports

* refactor(agents): reuse subagent attachment result type
2026-08-28 20:21:57 -07:00
cde3458c84 fix: gateway kill leaves Codex tool processes running (#107721)
* fix(codex): stop native terminals on run cancellation

Codex turn interruption deliberately leaves native background terminals
running. Wait for the matching turn to stop, terminate that thread's
terminals through the app-server API, and join cleanup before releasing
the attempt. Surface cleanup failures without retiring shared peer threads.

Keep existing host process scopes and background gateway jobs unchanged.
Verified with 412 focused tests and an authenticated live Codex run with a
concurrent peer thread on the same app-server.

Co-authored-by: Ming Yoo <mingyouagi@qq.com>

* fix(codex): freeze cancellation before attempt teardown

Close cancellation admission synchronously when cleanup takes ownership,
including when finalization throws before freezing its terminal outcome.
This keeps late aborts from replacing the joined cleanup promise during
resource release or masking the original finalization error.

Move the existing terminal freeze instead of adding another lifecycle flag.
Verified the regression fails before the change; all 413 Codex tests pass.

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: Ming Yoo <mingyouagi@qq.com>
2026-08-28 19:25:39 -07:00
Peter Steinberger 767ddc342b fix(codex): resolve explicitly selected hidden models (#132189)
Allow bounded media and completion calls to resolve hidden native catalog entries when a model is explicitly selected. Automatic picker selection remains unchanged.

Fixes #132187.
2026-08-28 19:08:49 -07:00
Peter Steinberger dd16853471 fix(plugins): keep development runs on checkout plugins (#132201)
* fix(plugins): keep development runs on checkout plugins

* test(node-host): contain the bundled Linux plugin fixture

* fix(dev): preserve checkout selector through tmux watch
2026-08-28 18:16:16 -07:00
Peter Steinberger e4001d8914 fix(browser): native bootstrap stalls before replying (#132212)
* fix(browser): unblock compiled native-host bootstrap

Load canonical config and pairing only after native-host validation. Keep
pure Browser URL and port helpers out of transport and mixed runtime
barrels, register the existing private CDP SDK export, and remove obsolete
bridge exports.

Run the extracted compiled-host integration case in the existing artifact
CI job with exact report validation. Preserve the custom installation
context, native framing, private Node trampoline, and 10-second deadline.

* fix(build): map private Browser SDK declarations

Complete browser-cdp registration in the shared plugin package-boundary
paths and XAI's matching override. Keep the SDK JavaScript-only in the
published package while using package-built declarations inside the repo.

The unchanged package-boundary contract reproduced the missing mapping
before this fix. No native-host runtime, fixture, assertion, or deadline
changes are included.
2026-08-28 17:55:06 -07:00
Peter Steinberger a86b427ca8 fix: allow off-catalog chat models under unrestricted policy (#132175)
* fix(models): honor unrestricted chat model policy

* test(models): declare fuzzy fixture model policy

* fix(models): preserve model-provider SDK compatibility
2026-08-28 17:05:51 -07:00
Peter Steinberger 1c40abdb63 fix: preserve ACP model switches and reply completion (#132040)
* fix: keep ACP thinking aligned after model switches

Carry published ACPX accepted control snapshots through the plugin boundary and reconcile selected thinking in the session owner. Preserve selectable pending thinking on automatic replay, persist accepted changes before later failures, and show effective thinking in command replies. Keep shipped optional-control replay and third-party void backends unchanged.

* fix: give ACP replies one completion owner

* fix: tighten ACP completion type boundaries

* fix(ui): defer native chrome and recover rendered lazy surfaces

* refactor(ui): separate native startup recovery tests

* fix: preserve explicit reply completion ownership

* test: consolidate ACP completion regression fixtures

* chore(ui): refresh boot manifest after main integration

* test: distinguish inbound ACP reply options

* test(ui): target retargeted queue clicks deterministically

* fix(ci): split UI test type graphs within the root budget
2026-08-28 16:56:29 -07:00
Peter Steinberger 9a3ede3a6d docs(plugins): correct bundled override precedence (#132181) 2026-08-28 16:01:40 -07:00
Peter Steinberger f19173837a fix(web-fetch): honor zero and shortened cache TTL on reads across fetch and search (#131648)
* fix(web-fetch): honor zero cache TTL on reads

* fix(web-search): honor effective TTL in direct provider caches

Use each request's existing TTL for cache reads and writes in DuckDuckGo,
SearXNG, Firecrawl search, Tavily search, Grok web search, and x_search.
Resolve config once at the client owner instead of retaining hardcoded
search-cache write defaults. Reject entries at their original expiry even
when the reader allows a longer TTL.

Add failing-first provider/tool regressions for disabling and shortening
TTL, preserving cache entries across disabled requests, and expiration.
Document the repaired local-cache controls without changing upstream
scrape caching or Tavily extraction.

* fix(web-search): honor effective TTL in shared search cache reads
2026-08-28 15:48:02 -07:00
Peter Steinberger 35ebb96a6d fix(models): keep native and alias-backed catalogs consistent (#131677)
Keep alias display names separate from dispatch identifiers and preserve selected catalog-only providers. Bind native catalog readiness to its producing client, account, configuration, and harness lifetime, with one consistent prepared Gateway projection.

Separate cold registration metadata from execution imports without changing participant persistence or host/profile authority. Include the acceptance-probe request-contract correction and document the isolated deployment boundary.

Required exact-head CI passed. Additional local cold-discovery and Doctor timing failures remain documented on the PR; the maintainer explicitly directed landing with those limitations. No configuration, credentials, deployment, or activation changes.

Closes #131454.
2026-08-28 13:26:16 -07:00
Peter Steinberger 4395a0cc3e refactor(meetings): share CLI descriptors with runtime registration (#131946) 2026-08-28 12:38:22 -07:00
Leon-SK668andAyaan Zaidi 54f0322557 fix(beam): retry failed terminal mirror uploads (#121186)
Keep Beam terminal work until the remote receiver confirms success. Bound and fairly rotate retry state, gate terminal sends on confirmed inactivity, and document the process-local restart limit.

Co-authored-by: Leon-SK668 <0668001470@xydigit.com>
Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-08-29 01:03:05 +05:30
Shakker ca1f4fb22e fix: gateway shutdown cannot cancel deferred context-engine maintenance (#131394)
Deferred context-engine maintenance now cooperatively cancels during Gateway stop and accepted restart drain, releasing queued work and owned engine resources without quarantining cancellation-aware plugins.

Fixes #129200.
2026-08-28 17:05:31 +01:00
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 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
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 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
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
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
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 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
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
ooiuuiiandPeter Steinberger c1a9dadf90 fix(agents): keep reasoning out of generated session titles (#111829)
* fix: keep model reasoning out of generated session titles

Request strict visible output before transport recovery can discard reasoning
tag provenance. Share host-prepared completion execution across bundled
harnesses while preserving normal completion recovery and title fallback.

Keep selected model/auth routing, HTTP-boundary coverage and persisted-title
browser proof. Remove duplicate completion paths and redundant test setup.

Co-authored-by: luyifan <al3060388206@gmail.com>

* fix(agents): preserve strict empty CLI completions

Forward strict-visible output policy through the CLI owner and allow a clean
empty result only for strict isolated completions. Keep ordinary CLI empty
responses rejected before successful auth settlement, without a silent token.

Consolidate post-dispatch empty validation and duplicate usage test setup.

Co-authored-by: luyifan <al3060388206@gmail.com>

* test(agents): retain label fallback and prompt contracts

Consolidate utility-success coverage into the two-API prompt and auth-owner
table. Keep both rejected and reasoning-only utility fallback cases bound to
the selected runtime owner after the main composition.

Co-authored-by: luyifan <al3060388206@gmail.com>

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-27 23:11:57 -07:00
Peter Steinberger b70945a58e fix(meetings): preserve realtime provider recovery (#131524) 2026-08-27 22:38:15 -07:00
Vincent KocandPeter Steinberger d7b0e07f4c fix(sandbox): revert Daytona cloud sandbox plugin (#130996)
* fix: remove Daytona sandbox plugin

Retire the unshipped cloud sandbox provider and its exclusive dependency closure; preserve Crabbox and standalone Daytona hosting documentation.

Co-authored-by: Peter Steinberger <steipete@gmail.com>

* test(ui): await catalog terminal restore completion

Wait for catalog RPC dispatch and pending-intent completion before asserting exactly one restored terminal. Reuse the request filter without weakening payload, activation, or cache checks.

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-27 22:31:04 -07:00
heichl_xydigitandAyaan Zaidi abf412aba4 fix(memory-core): keep dream prompts minimal (#106404)
Keep memory-core narrative and consolidation runs on the bounded subagent prompt. Tool-free minimal runs no longer receive unrelated tool, execution, messaging, or Control UI guidance.

Co-authored-by: heichl_xydigit <hei.chengliang@xydigit.com>
Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-08-28 10:36:59 +05:30
Peter Steinberger 596a86fa29 fix(config): preserve channel account policy inheritance (#131250)
* fix(config): preserve channel account policy inheritance

Keep pairing and allowlist defaults at channel roots while leaving named
account policies optional across bundled channel schemas. Consolidate
root-to-account merging at the config owner and resolve inherited
policies in doctor and security audit readers.

Fixes #131087

* chore(config): regenerate channel metadata after rebase

* perf(doctor): resolve channel allow-from mode once per channel

* test(doctor): stub channel doctor capabilities in allowlist repair tests

* test(telegram): prove inherited group authorization before dispatch
2026-08-27 20:37:15 -07:00
Peter Steinberger 16b0c1f251 fix(live): repair model E2E selection and session fixtures (#131229)
* fix(ci): accept valid focused live suite selectors

Match exact provider and media shard IDs to their enabled matrix profiles. Exercise the actual validator against all emitted suite selections.

Fixes #131204.

* fix(ci): forward DeepSeek credentials through live test hydration

* fix(ci): run local TTS live tests on the media runner

* test(moonshot): honor replay models and asynchronous stream contracts

* test(memory-lancedb): verify exact duplicate memory results

* test(skills): create valid sessions for experience review

* test(live): use current provider models and thinking capabilities

* fix(gateway): avoid pending model switches on new sessions

* test(gateway): advertise trajectory approval rendering capability

* test(setup): retain redacted inference failure diagnostics

* refactor(gateway): reuse unavailable model catalog handling
2026-08-27 20:09:39 -07:00
Peter Steinberger 22d019bfdb fix(plugins): keep SecretRef configurations loadable (#131310)
Validate paired pre-resolution plugin config while preserving resolved credentials and source-selected defaults. Include source config in the existing registry cache identity so unpaired inputs cannot reuse an accepted registry. Related: #130713.
2026-08-27 17:52:20 -07:00
Peter Steinberger 864034e5ce fix(codex): repair auth ownership across private turns, custom commands, and shared clients (#131187)
* fix(codex): bridge auth into private bounded turns

* fix(codex): keep custom-command credentials ephemeral

* fix(codex): revalidate shared auth and retire failed refreshes

* fix(codex): preserve claim-derived OAuth workspace ownership

Use the canonical ChatGPT identity resolver when deciding whether a supplied OAuth snapshot still belongs to the persisted account. This prevents a scoped refresh from overwriting a replacement workspace that shares the same email.

Exercise same-workspace and changed-workspace persisted clones with both stored and claim-derived account IDs.
2026-08-27 16:37:21 -07:00
Peter Steinberger 77746299ea refactor(imap): consume the core identifier-authentication scale (#131178)
* refactor(imap): consume the core identifier-authentication scale

Use the SDK type and canonical strength comparator instead of the private
SenderStrength vocabulary and index ordering. Bind config values to the SDK
union with a compile-time exhaustiveness check, preserving all config keys.

Classify unproven From ownership, including no-evidence and DMARC temperror
results, as unverified. Only an explicit unverified minimum gains admission;
the default verified floor and asserted minimum keep their behavior. Keep
existing token admission and thrown-authenticator retries unchanged.

Document the remaining mutable token/early-rejection paths and expose only
the canonical comparator through the SDK, with packaged-consumer coverage.
The IMAP introduction has no stable release contract.

* docs(security): record landed sender-auth mitigations in the threat atlas

Record the graded exact-pair identifier-authentication gate and inert mutable
allowFrom audit findings. Mark R-008 implemented in core while retaining
per-channel verified adoption and downstream mappers as remaining work.
Keep the existing atlas structure and Medium residual risk.
2026-08-27 14:19:39 -07:00
Peter Steinberger a509254b16 feat(security): warn on inert mutable allowFrom entries (#131129)
* feat(security): warn on inert mutable allowFrom entries

Report configured entries that cannot authorize with name matching disabled,
and preview lockout counts before disabling mutable matching. Distinguish
mutable aliases from exact identifiers with unproven ownership in audit text.

Reuse channel ingress declarations through one SDK classifier without changing
admission policy. Keep Discord audit findings redacted and exclude symbolic
access-group references from mutable-identifier warnings.

Refs #131099.

* test(security): keep entry-authentication audit coverage in its lanes
2026-08-27 12:33:12 -07:00
Peter Steinberger b3eded1744 fix(hooks): run plugin triggers with HTTP hooks disabled (#131059)
* fix(hooks): schedule plugin turns independently of HTTP hooks

* docs(hooks): clarify shared HTTP capacity reservation
2026-08-27 11:34:07 -07:00
xingzhouandPeter Steinberger 474624a5c7 fix(network): guarded fetch callers can leave responses streaming (#111277)
* fix(network): release captured streams without waiting on their cleanup

End best-effort reader ownership before guarded request cleanup, while preserving explicit cancellation failures after cleanup. Simplify llama download reader ownership without changing transport abort policy.

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

* fix(network): preserve caller-owned response cleanup

Preserve cancellation for partially consumed media responses, type the captured response handoff, and clarify beta stream cleanup ownership.

* fix(tts): settle stream cancellation with request cleanup

Own binary-stream cleanup in the shared helper and remove duplicate provider release wrappers. Preserve explicit cancellation settlement and errors while allowing cleanup to abort retained capture branches.

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

* test(tts): preserve cancellation result tuple types

Keep both cancellation/release call orders while passing an explicit two-result tuple to Promise.allSettled. Preserve the existing outcome and error-identity assertions without casts or non-null assertions.

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-27 11:25:14 -07:00
Peter Steinberger ff3cf3de3b docs(start): correct headless credential handoff to the SQLite auth store (#131024) 2026-08-27 09:40:27 -07:00
Peter Steinberger 706a06eab6 refactor(channels): consolidate account logout cleanup (#130976)
* refactor(channels): consolidate account logout cleanup

* fix(channels): initialize local logout plugins
2026-08-27 09:18:11 -07:00
Peter Steinberger 23ae7bcc3e fix(doctor): surface unreadable legacy plugin state instead of silently skipping migration (#130956)
Preserve missing-source and intentional parser-null skips while forwarding other read and JSON parse errors to the existing Doctor warning boundaries. Keep plugin import, archive, and persistence behavior unchanged.
2026-08-27 08:13:02 -07:00
5cdef05903 fix(channels): preserve empty docs prefixes (#103794)
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
Co-authored-by: Leon-SK668 <17695126+Leon-SK668@users.noreply.github.com>
2026-08-27 22:42:47 +08:00
Ayaan Zaidi 06038f9df8 fix(llama): support embedding-only managed setup (#130883)
Allow low-memory local-memory setups to install only the verified managed server and embedding model while preserving every configured chat route.

Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-08-27 18:09:53 +05:30
Peter Steinberger 3ee363fc08 docs(codex): correct effort support and provenance in harness reference (#130882) 2026-08-27 04:19:05 -07:00
Omar ShahineandOmar Shahine ea552dff2c feat(plugin-sdk): publish identifier authentication contract (#123793)
* feat(plugin-sdk): publish identifier authentication contract

* fix(discord): distinguish PluralKit identity provenance

* fix(discord): preserve PluralKit group provenance

---------

Co-authored-by: Omar Shahine <10343873+omarshahine@users.noreply.github.com>
2026-08-27 04:03:40 -07:00
d561469745 feat(channels): grade sender identifier authentication in the ingress kernel (#123782)
* feat(channels): add identifier authentication kernel

* fix(channels): preserve exact identity provenance

* fix(channels): fail strict dynamic groups closed

* fix(channels): bind plugin allowlists to exact identity fields

Move the Twitch role normalizers into the kernel branch and keep Discord
name and tag entries on their corresponding identity fields. Repair the
same mismatch for Slack name slugs and IRC nick@host entries.

Add regressions at the channel authorization boundaries.

Related: #123782
Co-authored-by: Omar Shahine <10343873+omarshahine@users.noreply.github.com>

* refactor(channels): resolve identifier authentication at intake

Keep raw SDK inputs optional and carry required authentication through
normalized kernel subjects, entries, and state. Resolve static claims at
intake and floor omitted fields in a supplied per-message map to unverified.

Remove the deprecated internal policy wrapper, downstream strength
fallbacks, and unused type exports. Cover the partial-map floor, static
claims, and mutable alias behavior, and document the map contract.

Related: #123782

* fix(channels): retain affected admission contributions

Preserve an authentication effect when other admission contributions were
not evaluated. Prefer any affected result, then any evaluated result,
before checking for uniformly unevaluated contributions.

Cover the mixed case through the existing redacted receipt flow.

Related: #123782

* test(twitch): await monitor delivery before resetting mocks

Make the ingress fixture drain accepted deliveries on stop, matching the
real monitor lifecycle. Await those deliveries directly so prefix and
reply assertions cannot race or leak completions into the next case.

Related: #123782

* fix(feishu): match ambiguous allow entries under both id fields

---------

Co-authored-by: Omar Shahine <10343873+omarshahine@users.noreply.github.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-27 03:42:38 -07:00
Peter Steinberger 11ef173077 fix: preserve native session ownership during cleanup and attachment (#130864)
* fix: preserve native session ownership during cleanup and attachment

Prepare permitted harness owners for offline session deletion. Reject direct
attachment of parent-controlled Codex children before displacing ownership.
Keep deadline and client authority through binding publication, and release
accepted subscriptions when publication fails without a remaining owner.

Unify conversation create/attach and preserve observational child monitoring.
Verified 950 focused/sibling tests, production and test types, independent
Codex review, and the real built offline CLI capacity reproduction.

* test: avoid shadowing the native binding row
2026-08-27 03:37:44 -07:00
47882f48cb fix(discord): preserve stringified components (#128498)
Preserve documented Discord Components V2 when MCP clients serialize component objects, and keep cross-channel schema discovery account-neutral.

Co-authored-by: gaoanze888 <214786078+gaoanze888@users.noreply.github.com>
Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-08-27 16:02:33 +05:30