Commit Graph
81780 Commits
Author SHA1 Message Date
Rishi TamrakarandPeter Steinberger c28b33ec38 fix(subagents): keep the failure cause on pending-error timeout announces (#125357)
* fix(subagents): keep the failure cause on pending-error timeout announces

A run that fails inside the lifecycle error retry grace window is handed to
waiters as `status: "timeout"` with the failure text attached and
`pendingError: true` (createPendingErrorTimeoutSnapshot). applySubagentWaitOutcome
rebuilt that as a bare `{ status: "timeout" }`, dropping the cause, and the
announce status label had no slot for it — so the parent agent was told only
"timed out" for a child that had actually errored, and could neither retry
appropriately nor report the real blocker.

Two other consumers of the same wait result already treat this shape as a
failure with a cause (isPendingErrorAgentWaitTimeout in sessions-send-tool,
isDeliveryFailureWait in sessions-send-tool.a2a); the subagent announce path
was the outlier.

Keep the cause when `pendingError === true` and render it as
"timed out: <cause>". Genuine budget timeouts carry no pendingError and are
unchanged.

Tests: 3 unit cases for applySubagentWaitOutcome (pending-error timeout keeps
the cause; budget timeout has none; wait error text without pendingError is
ignored) and an announce format case asserting the "timed out: <cause>" label.

* fix(agents): bound the task-completion status label in prompt context

statusLabel embeds caller-supplied error text ("failed: <cause>", and now
"timed out: <cause>"), but only the child result was capped before being
projected into the parent agent's prompt — a large provider or lifecycle
error could enter the model context unbounded and crowd out the result and
the reply instruction.

Cap the single status line at the shared internal-event formatting boundary,
which covers both the pre-existing "failed: <cause>" path and the new
timeout cause.

Tests: a large-error status label is truncated with a marker and keeps its
prefix; ordinary status labels are unchanged.

* fix(agents): reuse truncateUtf16Safe for the status-label cap

The status-label cap used a raw String.slice, which can split a UTF-16
surrogate pair when provider or lifecycle error text ends on an astral
character, sending a dangling surrogate into the parent agent's prompt.

Reuse the existing truncateUtf16Safe primitive instead of a parallel
implementation, matching agent-run-terminal-reply.ts.

Test: an emoji landing exactly on the truncation boundary keeps the label
within the cap, ends with the marker, and leaves no unpaired surrogate or
replacement character.

* fix(subagents): keep main's subagent cancellation classifier

The branch predated openclaw#125407, which replaced the generic classifier
here with classifySubagentTerminalOutcome so explicit restart/aborted stop
reasons stay cancellations while real provider timeouts still classify as
timeouts. Resolving the merge with the generic call would have reverted that.

Keep main's classifier and apply the pending-error cause inside its timeout
case; the two are orthogonal. A pending-error snapshot carries no stopReason
(createPendingErrorTimeoutSnapshot drops it), so the cancellation override
never fires for it.

Test: restart and aborted stop reasons with blocked liveness stay
cancellations rather than being reported as failures.

* refactor(subagents): reuse canonical status label truncation

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-23 15:58:35 -07:00
Vincent Koc 3d302c58c6 fix(release): register focused beta evidence on main (#128391)
* fix(release): repair frozen beta validation blockers (#128137)

* fix(release): repair frozen beta validation blockers

* fix(release): bind reviewed scanner evidence

* test(release): align frozen beta validation contracts

* fix(release): accept statusless 9a83 QA evidence (#128188)

* fix(release): admit final beta QA evidence (#128231)

Admit the exact final beta candidate to the existing fail-closed statusless QA compatibility profile and its parameterized validation matrix.

* fix(release): authorize focused beta evidence
2026-08-23 15:48:04 -07:00
Peter SteinbergerandAmp ca0af9c960 perf(matrix): reuse prepared outbound body (#128392)
Co-authored-by: Amp <amp@ampcode.com>
2026-08-23 15:41:45 -07:00
Peter Steinberger 78826458e3 fix(beam): stop mirroring after service shutdown (#126589)
* fix(beam): stop mirror work after service shutdown

* fix(beam): avoid waiting on stalled catalogs during shutdown

* refactor(beam): tighten catalog abort cleanup
2026-08-23 15:36:35 -07:00
Vyctor H. Brzezowski 6669872a95 feat(ui): let admins dismiss the sidebar update indicator (#128365)
* feat(ui): let admins dismiss the sidebar update indicator

Refs #128232

* refactor(ui): clean up update dismissal flow

* fix(ui): align update action state

* fix(ui): keep update reconciliation non-actionable

* fix(ui): preserve update reconciliation visibility

* fix: validate update dismissal facts

* fix(ui): resurface active updates

* fix(ui): show applying update campaigns

* fix(gateway): preserve boot identity

* perf(ui): split sidebar update styles

* fix(test): provide captured plugin runtime
2026-08-23 19:21:10 -03:00
Peter Steinberger bb6e4b1dee fix(apps): prevent stale Now Playing after ownership changes (#128381) 2026-08-23 15:20:21 -07:00
Peter Steinberger 977bbe2667 fix: agents continue after Code Mode tool and JavaScript errors (#128088)
* fix(agents): let code mode recover from ordinary tool failures

* fix(agents): preserve read-only reconciliation after side effects

* test(qa): track renamed code mode outcome owner

* test(agents): prove read-only code mode reconciliation boundary
2026-08-23 14:51:00 -07:00
Peter SteinbergerandAmp 955792c4a8 perf(zalo): reuse prepared media context (#128377)
Co-authored-by: Amp <amp@ampcode.com>
2026-08-23 14:48:58 -07:00
Peter Steinberger 5fff2b6d2f fix(feishu): prevent disallowed env credentials from authenticating requests (#127682)
* fix(feishu): enforce SecretRef provider policy

* test(feishu): type SecretRef policy cases

* fix(feishu): enforce discovery SecretRef policy
2026-08-23 14:45:13 -07:00
Peter Steinberger 1299ced0c2 fix(macos): escape all login LaunchAgent plist paths (#128378) 2026-08-23 14:42:19 -07:00
samson1357924 3dd3003f49 fix(status): retry status runtime loads and contain render errors (Fixes #94626) (#94806) 2026-08-23 14:37:09 -07:00
Peter Steinberger 4d00dc4fca fix(outbound): retain attachments when plural media URLs are blank (#128372) 2026-08-23 14:35:39 -07:00
Dallin Romney 0d727c3a3b fix(qa): exercise a real config restart boundary (#127285) 2026-08-23 14:25:12 -07:00
Peter Steinberger a534817b4e fix(apps): prevent Unicode numerals from freezing code highlights (#128364) 2026-08-23 14:23:21 -07:00
Vincent Koc 0debcaa00f fix(ollama): start local services for native chat (#128034)
* fix(ollama): lease native chat local services

* test(ollama): type local-service timeout fixtures

* fix(ollama): preserve configured service aliases

* fix(ollama): preserve remote model endpoints

* fix(ollama): normalize model endpoint ownership
2026-08-23 14:19:50 -07:00
Dallin RomneyandVincent Koc 8a3afa8820 fix(qa): model-switch proof accepts served model reroutes (#127281)
* fix(qa): accept response model reroutes

* fix(qa): accept tool continuity response reroutes

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-08-23 14:17:33 -07:00
Dallin RomneyandVincent Koc 8122e5cdcc fix(qa): let scenario-owned timeouts settle before watchdog (#127289)
* fix(qa): let scenario timeouts settle before watchdog

* test(qa): satisfy promise executor lint

* fix(qa): cap scenario lifecycle watchdog

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-08-23 14:15:11 -07:00
xingzhou 901b62262e fix(meeting-bot): keep local audio diagnostics readable across chunks (#110703)
* fix(meeting-bot): preserve split UTF-8 diagnostics

* fix(meeting-bot): stream decoded stderr diagnostics

* test(meeting-bot): type diagnostics monitor callback
2026-08-23 14:14:22 -07:00
Peter Steinberger 629e00776c fix(telegram): preserve business callback deletion ownership (#128358) 2026-08-23 14:12:38 -07:00
Peter Steinberger a3e69b2ba0 fix(cli): render sessions list JSON failures (#128316) 2026-08-23 14:11:26 -07:00
Peter Steinberger c48e973c66 fix(sessions): keep admin events out of model context (#128346) 2026-08-23 14:09:39 -07:00
Edward AbramsandEdward Abrams 3a4b3dfecc fix(agents): recognize explicit current-source replies (#113554)
Use the canonical delivered current-source matcher for CLI, terminal, and subscription completion paths. Preserve provider, account, target, and thread identity so only the active source route suppresses stranded-reply recovery.

Punchcard-Session: golden-river-workshop-vj

Co-authored-by: Edward Abrams <102749+zeroaltitude@users.noreply.github.com>
2026-08-23 14:09:32 -07:00
Peter Steinberger 259a14b83b feat(nodes): derive worker capacity from CPU cores and make it configurable (#128352)
Node session hosting was capped at a hardcoded 2 concurrent worker sessions.
The default is now one worker slot per available CPU core (clamped to 1..1024),
and nodeHost.workerRuns.capacity overrides it explicitly. The capacity option
was already plumbed through the supervisor; this wires it from config and
deletes the hardcoded constant. Docs and config baselines regenerated.
2026-08-23 14:09:06 -07:00
Peter SteinbergerandAmp 388e83d6cb perf(googlechat): reuse DM metadata for session routes (#128359)
Co-authored-by: Amp <amp@ampcode.com>
2026-08-23 14:05:27 -07:00
Yiğit ERDOĞAN 3b1c8f229d test(memory-core): release cached databases before removing fixture state dirs (#128310)
* test(memory-core): release cached state handles before removing fixture dirs

Six memory-core fixtures remove their temporary state directory while the
per-agent or shared SQLite handles opened underneath it are still cached, so
Windows fails the removal with EBUSY while Linux unlinks the open files and
stays green.

Release both handles before each removal, in the ordering merged for this
class: the agent close releases its leases through shared state and reopens
it, so the shared store has to be released after it.

* test(memory-core): release cached handles in the shared fixture harness and cli teardown
2026-08-23 13:55:24 -07:00
Peter Steinberger d1177a7882 fix(agents): suspend Code Mode during exec approval (#128355) 2026-08-23 13:54:43 -07:00
d0db8a9241 fix(cli): let nested agent exec --timeout override the parent flag (#125256)
* fix(cli): let nested agent exec --timeout override the parent flag

* fix(cli): keep nested exec --timeout inherit comment to the option-source invariant

---------

Co-authored-by: zyw02 <zyw02@users.noreply.github.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-23 13:46:23 -07:00
a237bc198e fix(ui): hide oversized history markers (#113980)
Fixes #111854

Co-authored-by: Andy Tien <worldhello321@gmail.com>

Punchcard-Session: silver-willow-brook-r7

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-08-23 13:46:09 -07:00
Peter Steinberger e4bf242461 refactor(agents): consolidate generation and runtime fixtures (#128339) 2026-08-23 13:43:05 -07:00
Peter Steinberger d97d350577 fix(gateway): stream assistant commentary before automatic tool calls (#128353) 2026-08-23 13:40:17 -07:00
kevin2966nandVincent Koc 34d7f44a34 fix(sandbox): use POSIX home path in container hint (#114209)
Punchcard-Session: coral-summit-valley-9r

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-08-23 13:37:29 -07:00
Yiğit ERDOĞAN 40c88ebefd test(qa-lab): release cached databases before removing fixture temp dirs (#128335)
Five qa-lab fixtures point a state directory at a temporary workspace and then
remove it while the shared and per-agent SQLite handles opened underneath are
still cached, so Windows fails the removal with EBUSY while Linux unlinks the
open files and stays green.

Release both before each removal, in the ordering merged for this class: the
agent close releases its leases through shared state and reopens it, so the
shared store is released second.
2026-08-23 13:36:49 -07:00
Peter Steinberger 1be9b56d57 refactor(protocol): rely on synthesized Swift coding keys (#128334) 2026-08-23 13:35:51 -07:00
Peter Steinberger 9b54e8c5ea fix(cli): preserve automation JSON output with parent options (#128343) 2026-08-23 13:32:05 -07:00
Peter Steinberger cee2e7759b refactor(cli): centralize onboarding and setup option ownership (#128349) 2026-08-23 13:30:03 -07:00
Peter Steinberger eb0118b417 fix(outbound): preserve visible text when chunkers return no parts (#128288) 2026-08-23 13:22:03 -07:00
Peter SteinbergerandAmp 323a0efdd0 improve(nextcloud-talk): avoid room credential reads on sends (#128344)
* perf(nextcloud-talk): skip room credentials on sends

* fix(nextcloud-talk): use account inspection hook

---------

Co-authored-by: Amp <amp@ampcode.com>
2026-08-23 13:07:45 -07:00
Peter Steinberger bd7fb1d597 fix(slack): preserve threads on ephemeral menu replies (#128341) 2026-08-23 12:42:37 -07:00
chelsealongandBek b3b33d2419 fix(agents): treat native hook relay records with a dead pid as absent (#128112)
* fix(agents): treat native hook relay records with a dead pid as absent

readNativeHookRelayClientBridgeRecord's expiry check never consulted the
recorded pid, so a bridge whose owning process died kept resolving as a
live locator for its full TTL. Lookups then spent their deadline retrying
a connection to an unreachable loopback port instead of falling back.

Extract the ESRCH liveness check already used by registration-time
pruning into a shared helper and consult it in the cold client lookup
path before attempting a connection.

* refactor(agents): reuse PID liveness helper

---------

Co-authored-by: Bek <bek.akhmedov@gmail.com>
2026-08-23 15:21:05 -04:00
Peter Steinberger 42d87c6731 test(providers): deduplicate failover and streaming fixtures (#128338) 2026-08-23 12:19:05 -07:00
zengLingbiao 06eb925c84 fix(diffs): restore GET/HEAD Content-Length parity on viewer routes (#120280)
* fix(diffs): send Content-Length on viewer HEAD responses

* test(diffs): build generated viewer runtime fixture before http tests
2026-08-23 12:14:53 -07:00
Peter Steinberger 5fe02bf514 fix(agents): preserve failed block delivery and pending media (#128337) 2026-08-23 12:14:06 -07:00
Peter Steinberger e373ba83d1 fix(slack): unify channel account readiness (#128322)
* fix(slack): unify channel account readiness

* fix(slack): keep credential helper acyclic
2026-08-23 12:11:37 -07:00
Peter SteinbergerandAmp 3a3f4e3fd6 fix(slack): retire replay-filtered debounce keys (#128331)
Co-authored-by: Amp <amp@ampcode.com>
2026-08-23 12:10:26 -07:00
SunnyShuandAltay a2e4c277c0 fix(compaction): re-compact when last entry is a compaction record but context still exceeds window (#125210)
* fix(compaction): re-compact when last entry is a compaction record but context still exceeds window

prepareCompaction short-circuited to undefined whenever the last session
entry was a compaction record, treating it as a no-op signal. That proxy
does not hold: the retained context (prior summary + kept recent turns +
system prompt + injected files) can still exceed the compaction threshold,
so a session can wedge above 100% of its window while the compactor
reports nothing to do. It only becomes eligible once enough new turns
append that the compaction record is no longer last.

Drop the last-entry-is-compaction-record short-circuit so the existing
re-compaction path stays reachable: prepareCompaction continues to walk
the retained tail, and when there is compactable content the prior
summary flows through previousSummary into UPDATE_SUMMARIZATION_PROMPT.
The empty-branch and last-entry-is-reset no-op guards are preserved, and
the existing messagesToSummarize.length===0 guard still returns undefined
when there is genuinely nothing new to summarize.

Related to #120290

* fix(compaction): harden re-compaction state handling

---------

Co-authored-by: Altay <altay@hey.com>
2026-08-23 22:10:00 +03:00
Peter Steinberger 917b5b258c test: deduplicate platform and runtime fixtures (#128323) 2026-08-23 12:05:26 -07:00
Peter Steinberger 04eae7cea1 feat(ui): link session hovercard identities to their activity feed (#128313)
* feat(ui): link session hovercard identities to their activity feed

Names shown in the session hovercard are now links to that person's
Activity feed. `activityPersonLocation` in app-route-paths owns the
`person` query contract that the Activity filters parse and the sidebar
ONLINE list already hand-rolled, so every identity surface builds the
same link.

The creator avatar gets a decorative twin link (aria-hidden, out of the
tab order) and participant names keep the locale's own "with {name}"
phrasing and list separators while each name becomes its own link.

* test(ui): capture the hovercard identity at rest for PR proof
2026-08-23 11:58:59 -07:00
Peter SteinbergerandAmp 7c7e10ab85 perf(msteams): reuse prepared activity on retries (#128329)
Amp-Thread-ID: https://ampcode.com/threads/T-01a021f5-984a-7628-a30c-491c166ff247

Co-authored-by: Amp <amp@ampcode.com>
2026-08-23 11:50:09 -07:00
Peter Steinberger b191296a62 fix(sessions): preserve artifacts during canonical repair (#128317)
Also deduplicate memory ingestion setup while preserving promotion semantics.
2026-08-23 11:46:29 -07:00
Peter Steinberger d916272617 fix(qa-lab): release Mantis credentials when cleanup fails (#128315) 2026-08-23 11:35:46 -07:00