Repository navigation
fix(cron): preserve nextRunAtMs for due-but-unexecuted recurring jobs - #1
Merged
Merged
Conversation
recomputeNextRuns() is called by ensureLoaded(forceReload) which runs inside onTimer() before runDueJobs(). When the timer fires at (or just after) the exact trigger time, recomputeNextRuns would call computeNextRunAtMs(job, now) which advances nextRunAtMs to the *next* occurrence. By the time runDueJobs() checks 'now >= nextRunAtMs', the slot has already been advanced — the job is silently skipped. Fix: in recomputeNextRuns, if a job's nextRunAtMs is in the past (due), it has no runningAtMs (not currently executing), and lastRunAtMs is before the current slot (hasn't been executed for this occurrence), preserve the existing nextRunAtMs so runDueJobs can fire it. This is a TOCTOU race that affects all recurring schedule types (cron expressions, every-interval) when the timer callback runs at or just after the scheduled time. Adds 5 unit tests for recomputeNextRuns covering: - Due job with no prior execution (preserved) - Timer fires slightly late (preserved) - Job already executed for slot (advances) - Job not yet due (unchanged) - Currently-running job (advances)
zeroaltitude
pushed a commit
that referenced
this pull request
Mar 2, 2026
… and docs (openclaw#16761) Add inline file attachment support for sessions_spawn (subagent runtime only): - Schema: attachments[] (name, content, encoding, mimeType) and attachAs.mountPath hint - Materialization: files written to .openclaw/attachments/<uuid>/ with manifest.json - Validation: strict base64 decode, filename checks, size limits, duplicate detection - Transcript redaction: sanitizeToolCallInputs redacts attachment content from persisted transcripts - Lifecycle cleanup: safeRemoveAttachmentsDir with symlink-safe path containment check - Config: tools.sessions_spawn.attachments (enabled, maxFiles, maxFileBytes, maxTotalBytes, retainOnSessionKeep) - Registry: attachmentsDir/attachmentsRootDir/retainAttachmentsOnKeep on SubagentRunRecord - ACP rejection: attachments rejected for runtime=acp with clear error message - Docs: updated tools/index.md, concepts/session-tool.md, configuration-reference.md - Tests: 85 new/updated tests across 5 test files Fixes: - Guard fs.rm in materialization catch block with try/catch (review concern #1) - Remove unreachable fallback in safeRemoveAttachmentsDir (review concern #7) - Move attachment cleanup out of retry path to avoid timing issues with announce loop Co-authored-by: Tyler Yust <[email protected]> Co-authored-by: napetrov <[email protected]>
zeroaltitude
pushed a commit
that referenced
this pull request
Apr 2, 2026
* feat: add QQ Bot channel extension * fix(qqbot): add setupWizard to runtime plugin for onboard re-entry * fix: fix review * fix: fix review * chore: sync lockfile and config-docs baseline for qqbot extension * refactor: 移除图床服务器相关代码 * fix * docs: 新增 QQ Bot 插件文档并修正链接路径 * refactor: remove credential backup functionality and update setup logic - Deleted the credential backup module to streamline the codebase. - Updated the setup surface to handle client secrets more robustly, allowing for configured secret inputs. - Simplified slash commands by removing unused hot upgrade compatibility checks and related functions. - Adjusted types to use SecretInput for client secrets in QQBot configuration. - Modified bundled plugin metadata to allow additional properties in the config schema. * feat: 添加本地媒体路径解析功能,修正 QQBot 媒体路径处理 * feat: 添加本地媒体路径解析功能,修正 QQBot 媒体路径处理 * feat: remove qqbot-media and qqbot-remind skills, add tests for config and setup - Deleted the qqbot-media and qqbot-remind skills documentation files. - Added unit tests for qqbot configuration and setup processes, ensuring proper handling of SecretRef-backed credentials and account configurations. - Implemented tests for local media path remapping, verifying correct resolution of media file paths. - Removed obsolete channel and remind tools, streamlining the codebase. * feat: 更新 QQBot 配置模式,添加音频格式和账户定义 * feat: 添加 QQBot 频道管理和定时提醒技能,更新媒体路径解析功能 * fix * feat: 添加 /bot-upgrade 指令以查看 QQBot 插件升级指引 * feat: update reminder and qq channel skills * feat: 更新remind工具投递目标地址格式 * feat: Refactor QQBot payload handling and improve code documentation - Simplified and clarified the structure of payload interfaces for Cron reminders and media messages. - Enhanced the parsing function to provide clearer error messages and improved validation. - Updated platform utility functions for better cross-platform compatibility and clearer documentation. - Improved text parsing utilities for better readability and consistency in emoji representation. - Optimized upload cache management with clearer comments and reduced redundancy. - Integrated QQBot plugin into the bundled channel plugins and updated metadata for installation. * OK apps/macos/Sources/OpenClaw/HostEnvSecurityPolicy.generated.swift > [email protected] check:bundled-channel-config-metadata /Users/yuehuali/code/PR/openclaw > node --import tsx scripts/generate-bundled-channel-config-metadata.ts --check [bundled-channel-config-metadata] stale generated output at src/config/bundled-channel-config-metadata.generated.ts ELIFECYCLE Command failed with exit code 1. ELIFECYCLE Command failed with exit code 1. * feat: 添加 QQBot 渠道配置及相关账户设置 * fix(qqbot): resolve 14 high-priority bugs from PR openclaw#52986 review DM routing (7 fixes): - #1: DM slash-command replies use sendDmMessage(guildId) instead of sendC2CMessage(senderId) - #2: DM qualifiedTarget uses qqbot:dm:${guildId} instead of qqbot:c2c:${senderId} - #3: sendTextChunks adds DM branch - #4: sendMarkdownReply adds DM branch for text and Base64 images - #5: parseAndSendMediaTags maps DM to targetType:dm + guildId - #6: sendTextToTarget DM branch uses sendDmMessage; MessageTarget adds guildId field - #7: handleImage/Audio/Video/FilePayload add DM branches Other high-priority fixes: - #8: Fix sendC2CVoiceMessage/sendGroupVoiceMessage parameter misalignment - #9: broadcastMessage uses groupOpenid instead of member_openid for group users - #10: Unify KnownUser storage - proactive.ts delegates to known-users.ts - #11: Remove invalid recordKnownUser calls for guild/DM users - #12: sendGroupMessage uses sendAndNotify to trigger onMessageSent hook - #13: sendPhoto channel unsupported returns error field - #14: sendTextAfterMedia adds channel and dm branches Type fixes: - DeliverEventContext adds guildId field - MediaTargetContext.targetType adds dm variant - sendPlainTextReply imgMediaTarget adds DM branch * fix(qqbot): resolve 2 blockers + 7 medium-priority bugs from PR openclaw#52986 review Blocker-1: Remove unused dmPolicy config knob - dmPolicy was declared in schema/types/plugin.json but never consumed at runtime - Removed from config-schema.ts, types.ts, and openclaw.plugin.json - allowFrom remains active (already wired into framework command-auth) Blocker-2: Gate sensitive slash commands with allowFrom authorization - SlashCommand interface adds requireAuth?: boolean - SlashCommandContext adds commandAuthorized: boolean - /bot-logs set to requireAuth: true (reads local log files) - matchSlashCommand rejects unauthorized senders for requireAuth commands - trySlashCommandOrEnqueue computes commandAuthorized from allowFrom config Medium-priority fixes: - #15: Strip non-HTTP/non-local markdown image tags to prevent path leakage - #16: applyQQBotAccountConfig clears clientSecret when setting clientSecretFile and vice versa - #17: getAdminMarkerFile sanitizes accountId to prevent path traversal - #18: URGENT_COMMANDS uses exact match instead of startsWith prefix match - #19: isCronExpression validates each token starts with a cron-valid character - #20: --token format validation rejects malformed input without colon separator - #21: resolveDefaultQQBotAccountId checks QQBOT_APP_ID environment variable * test(qqbot): add focused tests for slash command authorization path - Unauthorized sender rejected for /bot-logs (requireAuth: true) - Authorized sender allowed for /bot-logs - Non-requireAuth commands (/bot-ping, /bot-help, /bot-version) work for all senders - Unknown slash commands return null (passthrough) - Non-slash messages return null - Usage query (/bot-logs ?) also gated by auth check * fix(qqbot): align global TTS fallback with framework config resolution - Extract isGlobalTTSAvailable to utils/audio-convert.ts, mirroring core resolveTtsConfig logic: check auto !== 'off', fall back to legacy enabled boolean, default to off when neither is set. - Add pre-check in reply-dispatcher before calling globalTextToSpeech to avoid unnecessary TTS calls and noisy error logs when TTS is not configured. - Remove inline as any casts; use OpenClawConfig type throughout. - Refactor handleAudioPayload into flat early-return structure with unified send path (plugin TTS → global fallback → send). * fix(qqbot): break ESM circular dependency causing multi-account startup crash The bundled gateway chunk had a circular static import on the channel chunk (gateway -> outbound-deliver -> channel, while channel dynamically imports gateway). When two accounts start concurrently via Promise.all, the first dynamic import triggers module graph evaluation; the circular reference causes api exports (including runDiagnostics) to resolve as undefined before the module finishes evaluating. Fix: extract chunkText and TEXT_CHUNK_LIMIT from channel.ts into a new text-utils.ts leaf module. outbound-deliver.ts now imports from text-utils.ts, breaking the cycle. channel.ts re-exports for backward compatibility. * fix(qqbot): serialize gateway module import to prevent multi-account startup race When multiple accounts start concurrently via Promise.all, each calls await import('./gateway.js') independently. Due to ESM circular dependencies in the bundled output, the first import can resolve transitive exports as undefined before module evaluation completes. Fix: cache the dynamic import promise in a module-level variable so all concurrent startAccount calls share the same import, ensuring the gateway module is fully evaluated before any account uses it. * refactor(qqbot): remove startup greeting logic Remove getStartupGreetingPlan and related startup greeting delivery: - Delete startup-greeting.ts (greeting plan, marker persistence) - Delete admin-resolver.ts (admin resolution, greeting dispatch) - Remove startup greeting calls from gateway READY/RESUMED handlers - Remove isFirstReadyGlobal flag and adminCtx * fix(qqbot): skip octal escape decoding for Windows local paths Windows paths like C:\Users\1\file.txt contain backslash-digit sequences that were incorrectly matched as octal escape sequences and decoded, corrupting the file path. Detect Windows local paths (drive letter or UNC prefix) and skip the octal decoding step for them. * fix bot issue * feat: 支持 TTS 自动开关并清理配置中的 clientSecretFile * docs: 添加 QQBot 配置和消息处理的设计说明 * rebase * fix(qqbot): align slash-command auth with shared command-auth model Route requireAuth:true slash commands (e.g. /bot-logs) through the framework's api.registerCommand() so resolveCommandAuthorization() applies commands.allowFrom.qqbot precedence and qqbot: prefix normalization before any handler runs. - slash-commands.ts: registerCommand() now auto-routes by requireAuth into two maps (commands / frameworkCommands); getFrameworkCommands() exports the auth-required set for framework registration; bot-help lists both maps - index.ts: registerFull() iterates getFrameworkCommands() and calls api.registerCommand() for each; handler derives msgType from ctx.from, sends file attachments via sendDocument, supports multi-account via ctx.accountId - gateway.ts (inbound): replace raw allowFrom string comparison with qqbotPlugin.config.formatAllowFrom() to strip qqbot: prefix and uppercase before matching event.senderId - gateway.ts (pre-dispatch): remove stale auth computation; commandAuthorized is true (requireAuth:true commands never reach matchSlashCommand) - command-auth.test.ts: add regression tests for qqbot: prefix normalization in the inbound commandAuthorized computation - slash-commands.test.ts: update /bot-logs tests to expect null (command routed to framework, not in local registry) * rebase and solve conflict * fix(qqbot): preserve mixed env setup credentials --------- Co-authored-by: yuehuali <[email protected]> Co-authored-by: walli <[email protected]> Co-authored-by: WideLee <[email protected]> Co-authored-by: Frank Yang <[email protected]>
zeroaltitude
added a commit
that referenced
this pull request
Apr 27, 2026
opus-4-7 independent review found three issues missed by earlier review rounds: P1 — _persistPathOverride was still module-local Despite the Codex thread reply claiming the override moved into the shared persistState global, it was still a module-local 'let'. Tests passed by accident: in-memory dedupe shared via persistState.entries, but disk side effects from re-imported module copies leaked into STATE_DIR instead of the per-test temp dir. Moved into PersistState.persistPathOverride on the global singleton. P1 — CWE-59 symlink-follow on tmpPath (Aisle medium #2, unaddressed) tmpPath was ${filePath}.${process.pid}.tmp + default 'w' flag. A predictable name combined with a truncating O_CREAT would let an attacker who can write to the state dir pre-create a symlink at the tmp path pointing to e.g. /etc/passwd, and our write would follow it. Now uses randomUUID() for the name AND flag 'wx' (O_CREAT | O_EXCL) so any existing entry — file or symlink — fails the write safely. P2 — hydration ignored MAX_ENTRIES (Aisle medium #1) The 4 MB file-size cap permits ~250K entries through, blowing past the 5K in-memory MAX_ENTRIES on first load. Now collects valid candidates first, sorts DESC by ts, and slices to MAX_ENTRIES before inserting into the dedupe cache. Bounds memory regardless of file size up to MAX_PERSIST_FILE_BYTES. Tests: 26/26 pass (3 new tests covering each fix). Architectural note (per opus review): Land standalone. Don't migrate to plugin-sdk/persistent-dedupe — its hasRecent reads JSON on every miss, adding ~2-10ms to every Slack message in a thread the bot hasn't replied to (the dominant path for hasSlackThreadParticipation on the message-dispatch hot path). Warm-cache + debounced-write is correct here. Don't block on openclaw#70626.
zeroaltitude
added a commit
that referenced
this pull request
Apr 28, 2026
Five issues raised by Aisle / Codex / Greptile review on PR openclaw#72869, addressed inline rather than deferred: 1. CWE-59 symlink-following chmod (Aisle high #1) ensureModelsFileModeForModelsJson called fs.chmod on a path that may be replaced by a symlink. If an attacker can write to the agent dir (or OPENCLAW_AGENT_DIR points there), the chmod followed the link and changed perms on an arbitrary owned file. Now lstat first and refuse to chmod symlinks or non-regular files. 2. Prototype pollution via JSON keys (Aisle medium #3 / CWE-1321) stripAuthProfilesVolatileFields() copied untrusted keys into a plain {} object. Special keys '__proto__', 'constructor', 'prototype' could mutate the result's prototype chain. Now uses Object.create(null) for the result and explicitly filters those three keys (belt-and-suspenders). 3. DoS via unbounded auth-profiles fingerprinting (Aisle medium #4) readAuthProfilesStableHash had no size or depth limits. - Added MAX_AUTH_PROFILES_BYTES = 8 MiB. Above the cap we hash raw bytes instead of running JSON.parse + recursive transform + stable-stringify. - Added MAX_AUTH_PROFILES_DEPTH = 64 with a depth-cap marker so the recursive walk can't stack-overflow on pathologically nested input. 4. 'token' incorrectly stripped from fingerprint (Codex P2 / Greptile P2) AUTH_PROFILE_VOLATILE_FIELDS included 'token' to keep OAuth session token rotation from invalidating the cache. But profiles with type: 'token' use the literal 'token' key as a long-lived static credential — stripping it would mask real auth-state changes when a user rotates a static API token. Removed 'token' from the volatile set and documented the boundary inline. OAuth session fields ('access', 'refresh') and timing fields stay stripped. Skipped from this commit (will reply on threads): - Cache short-circuit on stale on-disk credentials (Codex/Greptile P1): separate concern from the security fixes; needs design discussion on whether to validate disk-vs-config or remove the short-circuit. - models.json drift in cache key (Codex P1): same — touches the fingerprint shape and overlaps with the targetProvider short-circuit. - targetProvider short-circuit untested (Greptile P2): test follow-up once the short-circuit semantics are settled. - Aisle medium #5 (raw secrets in fingerprint cache): structurally larger refactor; needs to land separately to keep this commit\'s blast radius clear. Lint: 0 errors. TS: clean.
zeroaltitude
added a commit
that referenced
this pull request
Apr 28, 2026
Addresses Codex P1, Greptile P2, and Aisle Med #1/#2/#3 on openclaw#73260: # Streaming bounded hash (Codex P1 / Aisle Med #2) The previous oversize-branch in readAuthProfilesStableHash still did fs.readFile(path) which loaded the entire file into memory \u2014 the MAX_AUTH_PROFILES_BYTES cap was effectively unenforced. Same problem for readModelsJsonContentHash (no cap at all). New helper safeHashRegularFile(): - lstat first; reject symlinks and non-regular files - bail at lstat-time if size exceeds maxBytes (returns sentinel hash so size-change still invalidates the cache) - open with O_NOFOLLOW where supported (closes lstat\u2192open TOCTOU) - fstat after open to verify it's still a regular file - createReadStream(fd) with bounded highWaterMark; destroy if accumulated bytes exceed maxBytes (handles the case where attacker grows the file between lstat and stream completion) Both readers now route through safeHashRegularFile. Models.json gets a 1 MiB cap (MAX_MODELS_JSON_BYTES); auth-profiles keeps its 8 MiB cap. # O_NOFOLLOW chmod (Aisle Med #1, CWE-367) The previous lstat-then-chmod sequence was racy: an attacker who could rename/replace ${agentDir}/models.json between the two syscalls could have chmod() follow a swapped-in symlink to an arbitrary file. Replaced with fs.open(path, O_RDONLY | O_NOFOLLOW) \u2192 fchmod via the file handle. The open itself refuses symlinks atomically; the fchmod operates on the validated fd, eliminating the race. When O_NOFOLLOW is unavailable (rare but possible), falls back to plain O_RDONLY \u2014 the prior lstat protection was already best-effort. # Symlink-safe reads (Aisle Med #3, CWE-59) Previous fs.readFile in the hash readers followed symlinks. With the safeHashRegularFile refactor above, both auth-profiles.json and models.json now reject symlinks before reading. # JSDoc fix (Greptile P2) readModelsJsonContentHash's prior comment said "forces a re-plan" when the file is absent, but the call site does null === null comparison which is a cache hit, not a re-plan (the steady-state skip case for plan.action === 'skip'). Updated the comment to explain the actual semantics: stable absence is a stable result; drift is a re-plan. # Tests 14/14 existing tests pass. No new test cases needed \u2014 the existing file-mode and fingerprint-cache tests cover both the symlink-rejection paths (via lstat shortcut) and the modelsJsonHash second-factor. Lint: 0 errors.
zeroaltitude
added a commit
that referenced
this pull request
Apr 28, 2026
…tegration Addresses Codex P2, Greptile P1+P2x2, and Aisle High #1 + Med #2/#3/#4 on PR openclaw#73261: # Greptile P1 / Aisle High #1: asymmetric baseUrl (CWE-918, SSRF) The previous guard: if (typeof configuredProvider.baseUrl === 'string' && configuredProvider.baseUrl !== diskProvider.baseUrl) short-circuited the check entirely when config omitted baseUrl (common for providers with compiled-in defaults). An attacker who could tamper with on-disk models.json could set baseUrl to an exfil endpoint and the short-circuit would accept it silently \u2014 exactly the SSRF/credential-exfil vector this PR was meant to close. Replaced with symmetric stableEqual() so config-undefined vs disk-string is a mismatch and falls through to full planning, which re-applies provider/plugin defaults and rewrites the file. # Codex P2: env-ref API key comparison resolveConfiguredApiKeyForCompare resolved env refs to the env-var VALUE (env[ref.id]). But planOpenClawModelsJson persists env-source api keys to models.json as the env-var NAME (e.g. 'OPENAI_API_KEY'), not the value \u2014 that's what resolveApiKeyFromCredential returns for env source. Comparing value-vs-name always mismatched, so the short-circuit never fired for the most common config form ('apiKey: "${env.OPENAI_API_KEY}"'). Now the helper returns the env-var NAME for env-source refs, while still verifying the env is currently populated (so we don't short-circuit on a misconfigured environment). Plaintext values still compare directly. # Greptile P2 (perf): readyCache integration The short-circuit returned before the readyCache check, so warm callers paid the disk read + JSON.parse cost on every call. Reordered: 1. compute fingerprint (cheap) 2. check readyCache \u2014 warm hit returns immediately, no disk I/O 3. if cold, attempt short-circuit on disk 4. if short-circuit succeeds, populate readyCache so subsequent calls take the warm path Net effect: warm callers now skip disk entirely; cold callers with intact disk state still get the short-circuit benefit; full plan fires only on real drift. # Aisle Med #2 (CWE-59): symlink-following short-circuit reads readExistingProviderMatchesConfig used fs.readFile on a possibly- symlinked target. Now lstat-checks first and refuses symlinks / non-regular files. # Aisle Med #3 (CWE-1321): prototype-chain key access explicitProviders[targetProvider] could fall through to a prototype key like '__proto__' / 'constructor' / 'prototype'. Now uses Object.hasOwn at both lookup sites (caller AND readExistingProviderMatchesConfig) to refuse inherited keys. Also explicit string check rejects the three known dangerous keys. # Aisle Med #4 (CWE-400): unbounded models.json read Added MAX_MODELS_JSON_SHORT_CIRCUIT_BYTES = 1 MiB cap on the disk read in the short-circuit path. Files above the cap fall through to full planning rather than being parsed. # Tests Updated hit-after-warm-fingerprint test (Greptile P2) to use fs.readFile spy and assert no disk read occurs on the warm path. Added short-circuit-populates-cache test that drops the in-memory cache between runs, fires the short-circuit, then verifies the third call takes the warm path with no disk read. 14/14 tests pass. Lint: 0 errors.
zeroaltitude
added a commit
that referenced
this pull request
May 5, 2026
…w feedback) Codex P2 / Aisle medium #1 on PR openclaw#73260 flagged that `safeHashRegularFile` returned a deterministic `oversize:${lst.size}` sentinel when a file exceeded the cap, so an attacker could swap the *contents* of an oversized `auth-profiles.json` or `models.json` without changing its byte length and still hit the readyCache via the size-only sentinel comparison (CWE-345). Switch to fail-closed: - `safeHashRegularFile` now returns `null` for oversize at lstat time and for grow-past-cap mid-read (the latter was already caught via the destroy-with-error path; the JSDoc/comment now states that explicitly). - The return type narrows from `{ hash; raw: Buffer | null } | null` to `{ hash; raw: Buffer } | null` — the `raw === null` branch in `readAuthProfilesStableHash` is now unreachable and removed. - JSDoc on the helper and `readAuthProfilesStableHash` now describes the fail-closed semantics and links them back to the threat model. Also: - Add a regression test that warms the cache with a small, hashable `auth-profiles.json`, then grows it past `MAX_AUTH_PROFILES_BYTES` (8 MiB) and asserts the implicit-provider-discovery pipeline re-runs (i.e. the fingerprint changed instead of stably hitting an `oversize:<size>` sentinel). - Add the missing `Unreleased` CHANGELOG entry covering the content-hashed fingerprint, post-write models.json drift hash, the oversize fail-closed change, and the existing `O_NOFOLLOW`/streaming/ prototype-pollution hardening (Codex P3 on the same review). - Backfill the new `resolveProviderEnvAuthEvidence`/ `listProviderEnvAuthLookupKeys`/`resolveProviderEnvAuthLookupKeys` exports in the fingerprint test's `model-auth-env-vars.js` mock so the suite runs at all after the recent `origin/main` merge added those call sites in `model-auth-env.ts` / provider secret-helpers. Validation (from ~/projects/worktrees/openclaw/perf-models-config-cache-fingerprint): pnpm vitest run src/agents/models-config.fingerprint-cache.test.ts Test Files 2 passed (2) Tests 12 passed (12) pnpm tsgo:core # 0 errors pnpm tsgo:core:test # 0 errors pnpm oxlint src/agents/models-config.ts \ src/agents/models-config.fingerprint-cache.test.ts Found 0 warnings and 0 errors. git diff --check # clean Beads: openclaw-9i0
zeroaltitude
added a commit
that referenced
this pull request
May 22, 2026
Tank report 2026-05-22 trio #1: config.ts upgrade. config.ts: replace manual type guards with zod schemas. The existing file already had the extract-from-run-attempt and manifest-alignment work; this commit adds the explicit strict-schema layer Tank flagged. - approvalPolicySchema (enum) - sandboxConfigSchema (union of short string + structured object) - positiveIntegerSchema for the two timeouts - appServerConfigSchema with .strict() so unknown keys fail closed - dynamicToolsConfigSchema with .strict() - pluginConfigSchema composing the two top-level sections resolveClaudeAppServerConfig now parses each section independently with safeParse so partial misconfiguration (e.g. one bad sandbox value) doesn't kill the defaults for unrelated sections. normalizeClaude* helpers also use safeParse with fallback-to-default. Top-of-file docblock now explicitly separates "BRIDGE enforces" from "ECHOED to server" concerns per Tank's request. Apparent split: - BRIDGE: command/args/env, turnTimeoutMs, turnIdleTimeoutMs, approval promotion, dynamicTools.exclude. - ECHOED: sandbox (server gets the value but the actual filesystem gate is openclaw's resolveSandboxContext earlier in the turn). openclaw.plugin.json: rewrite the appServer.approvalPolicy UI hint. Previously claimed "the plugin currently auto-declines unhandled approval requests" — stale since command/file approval routing was wired through openclaw's BeforeToolCall hook chain. New help describes the actual behavior (BeforeToolCall routing + automatic never→untrusted promotion when any policy registers). Validation: tsgo:core clean; 5/5 config tests still pass (3 resolver cases + 2 manifest alignment cases); oxlint clean.
zeroaltitude
added a commit
that referenced
this pull request
Jul 27, 2026
…ite-#3 A separately-dispatched session opened openclaw#114680 for the same defect (embedded-agent-subscribe.handlers.tools.ts's isDeliveredMessageToolOnlySourceReplyResult call missing allowExplicitSourceRoute) before this branch's fix for the same call site landed here, then openclaw#114680 was merged into origin/integration. Landing both would leave two different implementations touching the same lines. Revert this branch's embedded-agent-subscribe.handlers.tools.ts (+ test) changes back to their pre-fix state, since openclaw#114680's embeddedSendResolvesToCurrentSource already covers that call site and is deployed. Keep everything else from this branch's embedded-agent work: messagingToolSendResolvesToCurrentSource (embedded-agent-subscribe.tools.ts) and its wiring into message-tool-terminal.ts's installMessageToolOnlyTerminalHook (call site #3, the native agent-loop afterToolCall terminal hook) — openclaw#114680 never touched that file, so it's still a real, unfixed gap this branch closes. Net result: this branch now covers the original CLI-runner fix (openclaw-kg9) plus call site #3 only; openclaw#114680 covers call site #1. No overlap, no duplicate implementations of the same check. Beads: openclaw-yob
zeroaltitude
pushed a commit
that referenced
this pull request
Aug 14, 2026
… errors (openclaw#122624) * fix(codex): read canonical transcript session targets (#1) * test(slack): reproduce reconnect timer surviving shutdown * fix(slack): keep reconnects within one socket lifecycle * test(slack): exercise native reconnect over loopback * test(slack): satisfy reconnect integration checks
zeroaltitude
pushed a commit
that referenced
this pull request
Aug 14, 2026
* fix: stop bundled plugin startup refresh loops * feat: continue web sessions in the terminal (openclaw#122870) * feat: continue sessions in terminal Add a credential-free Control UI continuation command and allow openclaw resume to reuse current-profile authentication only for byte-exact configured Gateway targets. * fix(gateway): separate public origin TLS ownership Allow exact public-origin resume targets to reuse local authentication without inheriting the direct local listener certificate fingerprint. * fix(gateway): scope exact targets to gateway mode Prevent remote profiles from reusing dormant local Gateway authentication for explicit loopback or public-origin targets. * fix(cli): encode terminal resume handoffs Replace shell-specific quoting with a strict credential-free base64url handoff, gate configured auth reuse to validated handoffs, and skip unused session discovery. * fix(gateway): isolate handoff auth identity Suppress ambient Gateway auth fallback for validated handoffs while preserving explicit credentials, configured SecretRefs, stored device auth, and exact-target TLS ownership. * fix(cli): harden terminal resume handoffs * fix(cli): parse terminal handoff outcomes * fix(cli): bind handoffs to resolved agent * test(ui): align terminal continuation proof * docs(plan): track terminal continuation * refactor(ui): keep terminal handoff result local * fix(ui): keep composer capability menus within the viewport (openclaw#122296) * fix(ui): constrain composer capability menus * fix(ui): cap composer capability menu height * test(ui): cover long capability menu states * test(ui): capture capability menu interaction states * fix(ui): keep dark capability states legible * test(cron): focus runtime config composition (openclaw#122867) Co-authored-by: Amp <[email protected]> * feat(cli): allow editing automation display names (openclaw#122702) * feat(cli): allow editing automation display names * feat(cli): allow clearing automation display names * fix(ui): show progress during new session startup (openclaw#122713) * fix(ui): show progress during new session startup Refs openclaw#122703 * oc-1fa: keep new-session progress through handoff * fix(ui): keep new-session handoff live * fix(ui): preserve navigation callback contract * fix: make live updater checkout portable (oc-237) (openclaw#122873) * refactor(media): remove orphan generation facades (openclaw#122874) * refactor(agents): split subagent-control.ts into owner modules (openclaw#122875) * fix(ui): archived sessions leave sidebar after navigation (openclaw#122876) * oc-ad0.1: fix archived child session retention * oc-37c: evict archived child on navigation * fix(ci): expose AI pack diagnostics (openclaw#122786) * fix(recovery): reclaim proven-stale reply-only ownership with zero queued backlog (openclaw#122265) * fix(recovery): reclaim proven-stale reply-only ownership with zero queued backlog Stuck-session recovery kept reply-only ownership forever when the queued backlog was empty: isActiveRunProgressStale short-circuits to false at queueDepth 0, so stale active_reply_work was never reclaimed even after the durable session became killed. Evaluate staleness for reply-only ownership without the queue gate (the gate stays for run-handle paths), so proven-stale reply work expires through the existing abort-and-drain owner path while global-lane and deferred-maintenance exemptions and live reply work with recent progress are preserved. Closes openclaw#122227 * fix(recovery): keep maintenance phases out of zero-backlog stale reclaim The zero-backlog reclaim path (requireQueueBacklog: false) applied to every reply-only operation, including preflight_compacting and memory_flushing. Those phases are explicitly recognized as compaction and may honor a configured timeout above the stale threshold, so a valid long-running maintenance operation could be force-cleared early. Restore the queue-backlog guard for the maintenance phases so an unqueued compaction or memory flush is never reclaimed by this path; ordinary reply-only ownership keeps the zero-backlog expiry. Adds regressions for both maintenance phases. * fix(ci): ignore zombie-only Vitest process groups (openclaw#122759) * test(agents): scope extension fixtures to explicit owners (openclaw#122883) * ci: fingerprint preferred pnpm hooks (openclaw#122852) Co-authored-by: Amp <[email protected]> * fix(ci): record startup JS growth in the Control UI budget baseline Startup JS gzip reached 329483 B on main (build-artifacts, af49764), 1198 B over the 328285 B baseline + 1024 B tolerance, after cumulative chat/session UI growth landed in openclaw#122296, openclaw#122713, openclaw#122870, and openclaw#122876. Record the CI-measured bytes (within the 4096 B ratchet) to restore green build-artifacts and QA Smoke lanes. * fix(codex): keep sessionless mirror warnings out of onboarding (openclaw#122831) * fix(codex): skip mirrors for sessionless runs * fix(codex): restore openai model provider on media understanding turns PR openclaw#122163 made thread/start modelProvider caller-supplied and updated the web-search caller but missed media understanding, breaking its tests on main full runs (cross-lane gap). Pass the provider explicitly and export the retire binding prod now touches from the shared-client test mock. * test(codex): align prompt assertions with reworded guidance PR openclaw#121522 reworded the Skill Workshop guidance and cd7b7f6 reworded the message-tool final-reply text; both updated core tests but missed these codex mirror assertions (cross-lane gap breaking main full runs). * test(codex): scope agent-projection fixture session to its agent PR openclaw#114388 made multi-agent session ownership explicit; the atlas-scoped projection test still used the shared main-scoped session key and now trips AgentSelectionRequiredError (fourth cross-lane escape on main). * fix(telegram): prevent multi-agent startup migration false positives (openclaw#122877) * fix(telegram): resolve legacy state owners explicitly * docs(changelog): note Telegram migration ownership fix * Revert "docs(changelog): note Telegram migration ownership fix" This reverts commit e02962eb4b2e2475854adf8c2a2915bcfd1cf65a. * fix(reef): redact relay errors containing credentials (openclaw#119603) * feat: let limited browsers request admin access (openclaw#121459) * feat(gateway): add live device scope upgrades * feat(ui): add limited-access upgrade flow * fix(protocol): refresh Swift scope upgrade models * perf(ui): lazy-load device scope upgrades * fix(ci): complete scope upgrade generated surfaces * perf(ui): lazy-load GitHub link hovercards * fix(ui): keep admin repair guidance focusable * fix(ui): gate and refresh scope upgrade banner * refactor(ui): keep gateway client within line budget * fix(ci): align rebased scope upgrade checks * fix(ui): resolve scope upgrade in browser tests * fix(gateway): honor refreshed scope upgrade deadline * fix(gateway): honor refreshed scope upgrade deadline * fix(gateway): coalesce scope upgrade waiters * fix(ui): gate scope upgrade actions * chore(plugin-sdk): refresh rebased API baseline * fix(scope-upgrade): return canonical request ids * fix(ui): preserve gateway event type binding * fix(protocol): generate scope upgrade result models * fix(ui): preserve scope upgrade recovery guidance * chore(plugin-sdk): refresh rebased API baseline * test(ui): avoid scope upgrade navigation race * docs(control-ui): clarify scope upgrade approver * test(gateway): align appended method counts * chore(plugin-sdk): refresh rebased API baseline * refactor(ui): keep place picker within line budget * chore(plugin-sdk): refresh rebased API baseline * chore(plugin-sdk): refresh rebased API baseline * chore(plugin-sdk): refresh rebased API baseline * chore(plugin-sdk): refresh rebased API baseline * chore(plugin-sdk): refresh rebased API baseline * chore(plugin-sdk): refresh rebased API baseline * chore(plugin-sdk): refresh rebased API baseline * chore(plugin-sdk): refresh rebased API baseline * chore(plugin-sdk): refresh rebased API baseline * chore(plugin-sdk): refresh rebased API baseline * chore(plugin-sdk): refresh rebased API baseline * fix(gateway): preserve scope-upgrade browser origin * fix(matrix): retain previews when replacement delivery fails * test(matrix): tighten replacement proof * test(matrix): bind live replacement marker * test(matrix): type redaction ledger * test(matrix): observe nonvisible cleanup * fix(matrix): retain visible drafts on handler abort * test(commands): stub plugin metadata snapshot in onboard-inference test (openclaw#122901) The configured-model case lacked a current plugin metadata snapshot, so model normalization cold-discovered every bundled manifest; the prepared empty snapshot keeps the test on its intended boundary and reduced Vitest file wall time from 26.72s to 2.57s (the shell measurements were 194.45s and 56.21s including unrelated lock queues). * docs(skills): document session and transcript fetching in openclaw-debugging (openclaw#122904) Adds a Fetching Sessions and Transcripts section: sessions CLI first, then the per-agent SQLite data plane (session_nodes lookup from chat URL fragments, transcript_events shape, __openclaw sender provenance, session_transcript_fts, media://inbound mapping) and a dependency-free node:sqlite read-only recipe for hosts without sqlite3. Read-only-against- live-gateway rule stated inline. * fix: preserve compaction history when final audit fails * fix: redact compaction rejection diagnostics * fix: redact compaction retry errors * fix: isolate compaction structure audit * fix(ui): preserve picked image previews (openclaw#122905) Fall back to stored attachment data URLs when object URL previews are unavailable in the shared composer surface. * fix(zalo): keep packaged setup wizard loadable (openclaw#122902) * fix(zalo): package setup runtime surface * fix(tooling): track setup surface artifacts * fix(ci): run affected extension suites when changed-test planning falls back (openclaw#122885) The PR-changed test planner fails safe to the compact full-suite plan for any diff touching packages/**, but that compact plan excludes all extension test configs, so mixed package+extension PRs landed with zero extension test execution (escapes: PR openclaw#120534 breaking extensions/codex run-attempt.native-hook-relay.test.ts, PRs openclaw#122163/openclaw#121522 and cd7b7f6 breaking media-understanding-provider.test.ts and thread-lifecycle.test.ts on main full runs). The preflight now appends whole-config shards for the diff's touched extensions whenever the precise plan fails safe; whole configs (not precise targets) because the fail-safe cause leaves the non-extension diff's extension impact unbounded. * fix(gateway): resolve agent list model identity (openclaw#122907) Publish canonical resolved primary models with matching runtime and thinking metadata in agents.list. * test(microsoft-foundry): remove global test bridge (openclaw#122881) * test(microsoft-foundry): remove global test bridge * test(microsoft-foundry): type boundary fixtures * perf(ui): keep route transition out of startup * fix(e2e): verify suspend control over WebSocket (openclaw#122888) * fix(slack): prevent duplicate Socket Mode connections after reconnect errors (openclaw#122624) * fix(codex): read canonical transcript session targets (#1) * test(slack): reproduce reconnect timer surviving shutdown * fix(slack): keep reconnects within one socket lifecycle * test(slack): exercise native reconnect over loopback * test(slack): satisfy reconnect integration checks * fix(msteams): honor inbound channel media limit (openclaw#122315) * fix(msteams): honor inbound channel media limit * test(msteams): update lifecycle runtime mock * style(msteams): avoid resolver config shadowing * style(msteams): format lifecycle resolver mock * refactor(msteams): inline media fallback --------- Co-authored-by: DanielCardenas <[email protected]> Co-authored-by: Jason (Json) <[email protected]> * improve: speed up CLI spawn tests (openclaw#122891) * test(agents): trim cli spawn test imports * test(agents): distinguish prerelease policies --------- Co-authored-by: Amp <[email protected]> * fix(plugins): repair status and CLI fixtures (openclaw#122925) * fix: internal recovery prompts appear as operator-authored messages (openclaw#122908) * fix(agents): hide recovery prompts from transcripts Suppress settled-turn finalization and reasoning/empty-response control prompts at the session writer boundary. * test(agents): align hidden recovery prompt expectations * fix(ci): rotate stale dependency snapshot (openclaw#122921) Co-authored-by: Amp <[email protected]> * docs(gateway): clarify dynamic operator scopes (openclaw#122931) * fix: code mode dead-ends on oversized tool results instead of returning bounded output (openclaw#122924) * fix(agents): bound code mode bridge results Return oversized bridge, guest output, and final values as bounded successful projections with actionable narrowing guidance. * refactor(agents): absorb code mode output bounds * fix(ci): prevent channel add command test timeout (openclaw#122879) * test(channels): isolate add env setup contracts * test(channels): cover adapter env setup * fix(parallels): preserve plugin inventory during updates (openclaw#122912) * fix(parallels): preserve plugin inventory during updates * fix(parallels): preserve dev update plugin inventory * fix(ui): contain OAuth wizard modal content (openclaw#122892) * fix(ui): contain OAuth wizard modal content * test(ui): poll OAuth modal containment * refactor(ai): internalize ChatGPT SSE protocol (openclaw#122930) * feat(ui): show useful environment facts in the picker (openclaw#122923) * feat(ui): show environment facts in Where picker Preserve environment platform, trust, session-host, and capability metadata through new-session discovery while keeping placement availability tied to live executable nodes. Render bounded quiet device/cloud facts and add mocked browser coverage for task openclaw#33. * docs(plan): track picker environment facts * refactor(ui): split place browser rendering * docs(agents): require screenshot/video proof for UI-visible and gateway-behavior changes (openclaw#122920) Adds hard policy: UI-visible changes need before/after screenshots or a short video as PR evidence; gateway-behavior changes provable in the Control UI need an isolated dev-gateway live run with a recorded video. Documents the verified video upload flow (user-attachments endpoint, mp4/webm both served) and the bare-URL embed rule for GitHub's player. * fix(tools): preserve partial web fetch status (openclaw#122866) * fix(ui): deliver failed steer retries as a new turn when the session is idle (openclaw#122919) A steer rejected on the run/leaf fence parks as a failed steered queue row. Retry previously refused whenever the target run was gone, leaving the user's message permanently stuck with 'that run is no longer active'. Retry now converts the parked row into a plain queued send when the session is idle, so the text delivers as a fresh turn; active-run retries keep the original steer binding, and disconnected retries keep the existing error. * fix: stopping a session leaves subagents running with no stop control (openclaw#122909) * fix(gateway): cascade session stop to subagents Cascade exact and session-wide aborts through the subagent registry and keep Control UI Stop visible while descendants remain active. * refactor(gateway): absorb stop cascade orchestration * chore(gateway): refresh plugin SDK API contract for abort refactor Regenerates the export-closure contract after the stop-cascade refactor moved gateway abort orchestration exports, and drops a redundant Boolean() wrapper flagged by lint. Public SDK surface gate is unchanged. * chore(gateway): regenerate plugin SDK API baseline * fix(qa): preserve Code Mode reads in model-switch mock (openclaw#122935) * fix(ci): prevent flaky extension wrapper SIGTERM test (openclaw#122917) * test(scripts): wait for valid wrapper pids * test(scripts): harden PID marker reads * fix: session model selection replaced by response aliases and fallback wins (openclaw#122910) * fix(agents): keep session model selection canonical Preserve configured session model identity across response aliases and turn-local fallbacks. * fix(gateway): align session model projection consumers * test(gateway): mark session event model selection * test(gateway): stabilize sender avatar fixture (openclaw#122942) * perf(test): cut workflow guard import overhead (openclaw#122940) Co-authored-by: Amp <[email protected]> * test(extensions): remove duplicate runtime replays (openclaw#122949) * fix(ui): fence stale recovery scope work (openclaw#122944) * docs(deploy): add verification, cost, observability, and troubleshooting to the Cloudflare guide (openclaw#122932) The template shipped without the operator-facing half: no way to prove the restore path works before depending on it, no cost signal for the always-on versus webhook-only choice, no log surfaces, and no failure-mode index. Adds an architecture diagram, a restore rehearsal, measured recovery numbers from the real-R2 proof, provisioned-resource cost guidance, wrangler tail observability, and a troubleshooting index covering image architecture, Litestream S3 credentials, the startupz/readyz split, and ephemeral-disk config loss. * fix: prompt caching breaks on Claude Opus 5 and Sonnet 5 (openclaw#121283) * fix: prompt caching breaks on Claude Opus 5 and Sonnet 5 shouldPreserveThinkingBlocks() matched modern Claude ids with a hardcoded family list plus /claude-[5-9]/ future-proofing. That regex assumes the generation follows the prefix (claude-5-x), but shipped generation-5 ids place the family in between (claude-opus-5, claude-sonnet-5, claude-mythos-5), so none matched and dropThinkingBlocks flipped to true. Signed thinking blocks were stripped from replayed history, diverging every request and invalidating the Anthropic prompt cache on the default opus/sonnet aliases. Read the generation from the id instead, preserving blocks for generation 4 and newer. This handles both id shapes and matches the idiom already used in audit-extra.sync.ts and live-model-filter.ts. Closes openclaw#121251 * fix: correct Claude thinking replay contract Use the canonical Claude model identity and exact Anthropic preservation contract when deciding whether replay may retain prior thinking blocks. Carry deployment metadata through provider-family and fallback paths, and include canonicalModelId in the transcript policy cache key. Release note: Restore prompt-cache reuse for Claude Opus 5 and Sonnet 5 while continuing to strip unsupported Sonnet and Haiku 4.5 thinking history. * refactor: remove unused replay compatibility helper Use the canonical Claude drop predicate at the remaining test call sites and remove the unconsumed preservation export so the dependency/dead-code gate stays clean. * fix: keep Claude replay contract internal Use canonical llm-core identity resolution without exporting a new llm-core capability, avoiding unintended Plugin SDK API drift. --------- Co-authored-by: FullerStackDev <[email protected]> * fix(sessions): highWaterBytes 0 no longer deletes all session history (openclaw#119909) * fix(sessions): zero highWaterBytes no longer clears all session history resolveHighWaterBytes passed an explicit non-positive highWaterBytes through verbatim. The resolved value is the disk-budget cleanup loop's stop condition, so a zero target made enforce mode evict every unprotected session and prune its extracted archives instead of trimming to the documented 80% default. Route the non-positive case to the function's existing unusable-value branch (computeDefault). Not null: that disables the budget and permits unbounded growth, which is right for a cap but wrong for a target. Sibling of openclaw#119422, which fixed the same harm for maxDiskBytes and guarded only resolveMaxDiskBytes. * test(infra): isolate worktree migration discovery Keep worktree migration coverage focused on its real filesystem, Git, and SQLite owner while avoiding unrelated channel and plugin doctor cold starts on fork CI. Co-authored-by: masatohoshino <[email protected]> * test(ci): carry owner-approved SDK and doctor gate repairs Carry the already-approved plugin SDK contract manifest and focused doctor-flow test isolation from the maintainer-owned CI repair. Preserve real config migration, persistence, snapshot, and SQLite cleanup coverage; no production behavior changes. Co-authored-by: masatohoshino <[email protected]> * fix(sessions): use the renamed withTestDir helper in the new budget test * fix(sessions): align high-water zero contract * style(sessions): format high-water changes --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: FullerStackDev <[email protected]> * fix(ui): model picker shifts when another user starts typing (openclaw#122809) * fix(ui): keep composer model picker stable while typing * test(ui): prove typing keeps model picker stable Co-authored-by: Colin Johnson <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]> * feat(ui): split new session place picker (openclaw#122938) * feat(ui): split new session place picker * test(ui): cover three-chip session picker * fix(gateway): allow downloading zero-byte artifacts (openclaw#122928) * fix(gateway): preserve zero-byte artifacts * fix(gateway): keep non-string data out of artifact lists * test(gateway): compact zero-byte artifact coverage * feat(ui): open subagent details in chat sidebar (openclaw#122941) * feat(ui): open subagent details in chat sidebar * chore: drop changelog edit (release generation owns it) * refactor(ui): drop duplicate close in subagent detail panel The sidebar region header already owns a Close Details control in both wide and narrow layouts; the panel-local X duplicated it 40px away. * fix(ui): stop subagent transcript loader when pane presentation retires Pane retention wipes sidebarContent directly, so the detail slot's render-time reset can never run again; a pending refresh timer plus incoming task events kept refetching chat.history for a hidden panel. * docs(ui): note close-control ownership in subagent detail header * fix(ui): break transcript renderer import cycle * fix(ui): use shared action cursor for subagent rows * fix: install or review the publisher you picked when ClawHub skills share a slug (openclaw#121697) * fix(skills): keep ClawHub publisher identity from search through install ClawHub search returns one entry per publisher, so several results can share a slug. Every client collapsed the selection to that bare slug before calling skills.detail and skills.install, and ClawHub answered 409 AMBIGUOUS_SKILL_SLUG with no in-product way forward. searchClawHubSkills now records the publisher-qualified reference once, on the result that carries it, and the Gateway protocol documents it. skills.detail parses the same reference grammar skills.install already accepted, so review and install cannot resolve to different publishers. Control UI carries that one reference through row actions, detail, busy state, and acknowledgement retries, and shows it so otherwise identical rows are distinguishable. Fixes openclaw#117633 * fix(apps): send the ClawHub publisher reference from native skill browsers macOS, iOS, and Android read the qualified reference from search results and use it for skills.detail, install, busy state, installed matching, and list identity, so two publishers sharing a slug stay distinct instead of collapsing into one ambiguous request. * fix(skills): refuse external-source skill detail instead of reading a same-slug skill ClawHub has no source-qualified read endpoint, so a skills-sh reference parsed down to its bare slug would have returned a registry skill's card while install resolved the external artifact. Review and install could name different skills. skills.detail now fails closed on any reference that carries a source, and the macOS and AgentPro rows show the publisher reference next to the summary instead of only when a summary is missing, so same-slug rows stay distinguishable. * chore(apps): refresh native i18n source baseline for the skill row references * refactor(skills): drop the unread search-result ownerHandle field installRef is the one reference clients send back, and no client reads the publisher handle separately, so the protocol and Control UI carry one field instead of two. * fix(skills): name the next step when external skill detail is refused Clients that gate install behind a successful review would otherwise see only a refusal, so the error names the direct install path and the CLI equivalent. * fix(macos): use a doc comment on the ClawHub row subtitle swift-format's docComments rule requires doc comments on declarations; the subtitle property carried a regular comment and failed macos-swift. * fix(skills): carry ClawHub trust state to clients that can install Forwarding installRef let clients install the exact publisher the operator picked, including external skills-sh sources. It did not forward the trust state that says ClawHub never scanned that source, so iOS AgentPro — the one surface that installs in a single tap with no review step — could install an unscanned artifact with nothing on screen saying so. The CLI already labels these (docs/clawhub/cli.md, docs/cli/skills.md); native clients could not, because trustState was never on the wire. trustState becomes an optional field on SkillsSearchResultSchema. It is purely additive: older clients ignore an unknown key and the field is absent for registry results, so downgraded readers are unaffected and no protocol version moves. Every client that renders a search row now shows "Not scanned by ClawHub", matching the CLI wording exactly: iOS AgentPro in the row above the install button, macOS and Android beside the review action, and Control UI on the row that explains why review is refused for these sources. Covered by a wire assertion that the state reaches clients for an external source and stays absent for registry rows, plus decode-and-label tests on the shared Swift kit and the Android parser, and a Control UI render assertion. * fix(ui): size the ClawHub detail dialog to a refusal message Refusing detail for an external source made an error-only dialog reachable. The shared preview panel reserves a tall reader height for skill documents, so a two-line refusal rendered in a mostly empty dialog and read as broken rather than deliberate. Found by inspecting the review captures. * revert(ui,apps): drop the ClawHub trust label layer Maintainer product decision: skills.sh runs its own scanners, so OpenClaw does not add a second alert layer in the apps. Removes the label from Control UI, iOS, macOS and Android, and drops the trustState wire field that nothing would render. The CLI keeps its existing label; changing that is a separate call. Publisher identity, the fail-closed detail refusal, and the message-only dialog are unchanged. Splits the oversized skills view test file to satisfy max-lines without a suppression. * test(ui): fix ClawHub skill fixture checks * chore(plugin-sdk): refresh API baseline --------- Co-authored-by: Patrick Erichsen <[email protected]> * oc-e35: restore explicit multi-agent UI ownership (openclaw#122889) * fix(agents): hydrate CLI images from agent workspaces (openclaw#122684) * fix(agents): hydrate CLI images from agent workspace * fix(agents): preserve resolved CLI workspace owner * fix(agents): keep workspace owner in prepared params * fix(agents): resolve CLI owner before preparation * fix(agents): preserve CLI runtime policy owner --------- Co-authored-by: Adkid-Zephyr <[email protected]> Co-authored-by: FullerStackDev <[email protected]> * fix(ai): honor embedded transport policy (openclaw#122946) * refactor: remove residual normalization aliases (openclaw#122956) * refactor: remove residual normalization aliases * test(gateway): isolate approval authority handshake * fix(qa): isolate staged auth state (openclaw#122958) * fix(wizard): honor gateway overrides in manual flow (openclaw#122961) * refactor(config): retire dead streaming.progress.render key (openclaw#122927) * refactor(config): retire dead streaming.progress.render key The key had zero runtime consumers after openclaw#122552. Core doctor now strips it via stripRetiredTuningKnobs, and production LOC is net -13. * fix(tooling): pin plugin SDK surface counts to the reduced export set The retired progress-draft render reader counted twice via channel-outbound and channel-message's wildcard re-export. * fix(projects): avoid stale GitHub results after token rotation (openclaw#122613) * fix(projects): avoid stale GitHub results after token rotation * fix(gateway): scope GitHub caches by credential * style(gateway): format GitHub credential scope --------- Co-authored-by: FullerStackDev <[email protected]> * fix(cli): avoid restart hint for unchanged config (openclaw#122953) * fix(cli): avoid restart hint for unchanged config * docs(cli): clarify no-op restart guidance * fix(onboard): allow imports after runtime scaffolding (openclaw#122967) * fix(cli): fail fast when onboarding profile is busy (openclaw#122968) * fix: GitHub project selection cloned repos before Start Session (openclaw#122906) * fix(ui): defer GitHub project clone until submit Keep remote project selection as draft state and materialize it before sessions.create on Start Session. * fix(ui): consolidate deferred project selection * test(ui): drop duplicate remote project assertion * fix(deploy): repair probes that silently pass and a blueprint that cannot boot (openclaw#122963) Three defects proven by running the shipped configs: Kubernetes probes checked only the status code against /startupz, but the pinned image predates that route and the Control UI answers unknown paths with a catch-all 200. A wedged pod was therefore marked Ready forever. Probes now assert the JSON probe contract and target routes the pinned image actually serves; verified in a kind cluster where the old command exits 0 on the missing route and the new one exits 1. render.yaml set no dockerCommand, so the image CMD ran without --allow-unconfigured and a fresh Render disk exited 78 with 'Missing config' before binding. Reproduced locally with Render's exact env. The Cloudflare Container readiness poll had the same route mismatch against operator-supplied official image digests; it now polls /healthz, which every published image serves. Also replaces an R2 verification step that could never fail: wrangler cannot list object keys, so the documented command 404'd into || true. * docs: repair spellcheck and anchor drift (openclaw#122960) * docs: repair spellcheck and anchor drift * docs: satisfy markdown anchor lint * docs(hosting): fix unsafe deployment instructions (openclaw#122971) * test(agents): remove global test APIs (openclaw#122972) * fix(slack): accept org-wide user IDs in Enterprise Grid policies (openclaw#122934) * test(slack): accept org-wide enterprise users * fix(slack): allow org-wide enterprise users * style(slack): format enterprise user policy * test(slack): preserve enterprise user identity scope * fix(slack): preserve enterprise user identity scope * fix(slack): import workspace identity normalizer * fix(slack): normalize enterprise owner ids --------- Co-authored-by: Sarah Fortune <[email protected]> * refactor(state): simplify schema migration validation (openclaw#122959) * perf(test): avoid embedded runtime imports in btw suite (openclaw#122957) Co-authored-by: Amp <[email protected]> * fix(agents): preserve setup inference auth owner (openclaw#122975) * feat(ui): open bare pair command without a chat turn (openclaw#120855) Co-authored-by: Patrick Erichsen <[email protected]> * test(extensions): repair stale full-config extension tests (openclaw#122978) clickclack inbound mention gating: openclaw#114388 (1ca60fb) made multi-agent fallback ownership explicit, so the openclaw#115484 fixture now declares its clickclack:default service-bot binding. policy CLI: openclaw#114388 (1ca60fb) removed ambient ownership from normalized multi-agent configs, so the openclaw#111087 routing-probe fixture uses the sole main agent and still reaches the intended findings exit. Teams and Zoom node invoke policy: openclaw#118451 (7d40666) added trusted audio backend, buffer size, and format forwarding; assert those fields alongside the configured commands. Teams node host: openclaw#118451 (7d40666) made default audio commands platform-dependent at import time after openclaw#111455 added the sox dedupe test; reset modules and mock Darwin before importing defaults. * fix(cli): rejected profile commands no longer create state (openclaw#122970) * fix(cli): defer profile state creation past argument validation * test(cli): use tracked profile temp directory * test(doctor): align checkpoint expectation with pristine roots * fix(agents): report recovered compaction runs as completed (openclaw#122974) * refactor(gateway): remove suspension mock replay (openclaw#122977) * test(gateway): remove suspension mock replay * test(agents): stabilize headless timeout assertion * feat(node-host): add negotiated private worker controls (openclaw#122939) * feat(node-host): add private worker supervisor controls * refactor(node-host): harden private worker controls * refactor(node-host): simplify private worker controls * docs(plan): track private worker controls * fix(node-host): satisfy private control CI guards * test(gateway): follow worker service construction boundary * test(gateway): register private control release train * fix(gateway): retain worker dialect across reapproval * fix(sessions): preserve durable transcript ownership (openclaw#122729) Resolve transcript writes through the durable SQLite session-window owner, reject owner changes transactionally, and repair unambiguous stolen-owner aliases with Doctor. Co-authored-by: Ayaan Zaidi <[email protected]> Co-authored-by: Thorsten Stresow <[email protected]> * feat(xai): add Grok 4.6 catalog and preserve OAuth xhigh (openclaw#122762) * feat(xai): add Grok 4.6 catalog and preserve OAuth xhigh Add first-class Grok 4.6 discovery, pricing, and reasoning metadata while keeping the existing Grok 4.3 API-key and server-tool defaults unchanged. Preserve xhigh only for Grok 4.6 so OAuth auto no longer inherits the Grok 4.5 high downgrade. Closes nothing; tracks openclaw#122734. * fix(xai): resolve the OAuth auto alias to its canonical model in the thinking policy The OAuth catalog row keeps id "auto" and records the provider-selected target in params.canonicalModelId; judging the raw alias collapsed the default OAuth route to an off-only thinking picker for every model. Co-Authored-By: Claude Fable 5 <[email protected]> * test(xai): refresh catalog-order assertions and restore stream deadlines for Grok 4.6 Exact-order catalog and onboarding arrays now include the new row with its metadata assertion; payload-capture timeouts return to their original values, Grok 4.5 off-clamp and Grok 4.3 modern-model coverage are restored, and the Grok 4.6 xhigh boundary test passes its id explicitly. Co-Authored-By: Claude Fable 5 <[email protected]> * feat(agents): add Grok 4.6 to the curated high-signal live matrix xai is a curated-only high-signal provider, so the new flagship was structurally excluded from default live sweeps; add it alongside Grok 4.5 with its test and docs mirrors, matching the 4.5 precedent. Co-Authored-By: Claude Fable 5 <[email protected]> * fix(xai): align Grok frontier metadata * fix(xai): align Grok 4.6 catalog contract Remove the unsupported moving alias, centralize OAuth auto target resolution, correct cached pricing, and keep live coverage on the stable xhigh completion path. Co-authored-by: Kiran Magic <[email protected]> --------- Co-authored-by: Kiran Magic <[email protected]> Co-authored-by: Kiran Magic <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]> Co-authored-by: Kiran <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> * test(plugins): refresh fixture contracts (openclaw#122986) * improve: one channel picker and one model picker across the Control UI (openclaw#122964) * fix(ui): unify channel pickers with icons Preserve channel values and mutation ownership across Automations, pairing, setup, and Workboard while sharing accessible picker rendering and artwork. * refactor(ui): unify model pickers Share provider-aware model selection across chat, new sessions, Automations, Agents, model defaults, Session Observer, Talk, and Memory while preserving owner-specific values and locks. * fix(ui): keep picker change callbacks value-only Keep the Web Awesome element private to model-picker custom-mode handling while preserving one-argument callbacks for every picker consumer. * fix(ui): satisfy model picker types Keep custom sentinel options within the shared model option shape and guard optional Memory placeholder translation keys. * refactor(ui): remove obsolete model option template import Drop the Lit import after Agents model options became pure shared-picker data. * fix(ui): satisfy picker lint gates Use explicit model option mapping, remove stale E2E locals, and keep the Cron behavior suite within its enforced line budget. * test(ui): target unified session model picker * fix(ci): rename state migration assertion map off the env-var pattern OPENCLAW_STATE_MIGRATION_ASSERTIONS (a module-local const introduced by openclaw#122959) matches the OPENCLAW_[A-Z0-9_]+ source scan in scripts/check-env-var-count.mts, pushing the env-var ratchet to 503/502 and failing check:env-var-count on every branch based on current main. It is not an environment variable; rename it to STATE_MIGRATION_ASSERTIONS so the ratchet stays an honest env-var count. * test(oc-path): make perf budgets robust to CI scheduler noise (openclaw#122994) * fix(memory): keep session reconciliation off search path (openclaw#120837) * fix(memory): keep session reconciliation off search path * test(memory): decouple reconciliation test from provider fixture --------- Co-authored-by: Jason (Json) <[email protected]> * fix(agents): preserve headless timeout ownership (openclaw#122997) * fix(gateway): preserve system agent ownership (openclaw#122987) * fix(gateway): preserve system agent ownership * chore(plugin-sdk): refresh ownership API baseline * fix(gateway): preserve global system event routing * refactor(ui): one task-detail surface for rail and subagent clicks (openclaw#123003) * refactor(ui): unify task details in sidebar panel * docs(ui): describe task detail sidebar * refactor(ui): collapse onSelectTask into onOpenTaskDetail Two names for the same open-the-panel action; rows now call the callback directly. * fix(ui): clear rail open-task highlight when detail slot closes openTaskId derived from sidebarContent alone, but region close only collapses the layout and retains content, leaving a stale aria-current row; gate the highlight on detail-slot visibility. * fix(ui): keep requester sessions out of subagent transcripts and let reopen retry failed lookups A queued subagent has no child session yet; falling back to its sessionKey rendered the requester's conversation as the task transcript. And a failed tasks.get permanently suppressed the panel's render-driven load; selection now clears the recorded error so reopening retries, matching the old rail behavior. * test(buzz): add opt-in thread QA coverage (openclaw#116081) * test(buzz): add opt-in thread QA coverage * fix(buzz): preserve QA conversation kind --------- Co-authored-by: Dallin Romney <[email protected]> * perf(test): avoid unrelated runtime imports in MCP suite (openclaw#122998) Remove duplicate adversarial filter integration coverage, replace broad plugin/auth imports with contract-complete test leaves, and repair the main env-var ratchet broken by an unrelated newly added internal constant. Amp-Thread-ID: https://ampcode.com/threads/T-019fee8d-665d-707b-a380-23f2a6a1ce03 Co-authored-by: Amp <[email protected]> * fix(ci): sanitize AI manifest during installer pack (openclaw#122952) * test(agents): move recovery transcript proof to QA (openclaw#123006) * fix(discord): chunk long thread initial messages (openclaw#117354) Discord rejected over-limit starter messages and could leave ordinary threads empty after creation. Split initial content through the existing Discord chunking and nonce-retry path while preserving confirmed-versus-ambiguous partial-delivery results. Co-authored-by: zhang-guiping <[email protected]> * refactor(plugin-sdk): remove retired Copilot login chain (openclaw#122988) * refactor(plugin-sdk): remove retired Copilot login chain * chore(plugin-sdk): refresh generated API baselines * build(github-copilot): remove unused prompt dependency * chore(plugin-sdk): reconcile API baselines after rebase * fix(e2e): declare agents-delete fixture owners (openclaw#123000) * fix(sessions): preserve pinned sessions during maintenance (openclaw#122990) * fix(state): accept shipped commitments schema (openclaw#122945) * fix(parallels): recover migration-refused gateway startup * fix(signal): fail probe when RPC verification fails (openclaw#123001) * feat(worker): expose supervised terminal outcomes (openclaw#123013) * feat(worker): expose supervised terminal outcomes * docs(plan): track supervisor terminal outcomes * test: speed up attempt execution helpers (openclaw#123012) Co-authored-by: Amp <[email protected]> * fix(replies): keep approval-unavailable notices durable (openclaw#121179) Punchcard-Session: clear-lantern-summit-v2 * fix(ui): stop misreporting limited Custodian access (openclaw#123011) --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Vyctor H. Brzezowski <[email protected]> Co-authored-by: Amp <[email protected]> Co-authored-by: Jacqueline Henriksen <[email protected]> Co-authored-by: Josh Lehman <[email protected]> Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: licheer-zte <[email protected]> Co-authored-by: sunlit-deng <[email protected]> Co-authored-by: joshavant <[email protected]> Co-authored-by: Calin Laurentiu Ilie <[email protected]> Co-authored-by: Daniel Cárdenas <[email protected]> Co-authored-by: DanielCardenas <[email protected]> Co-authored-by: Colin Johnson <[email protected]> Co-authored-by: Chinmay Rawat <[email protected]> Co-authored-by: Masato Hoshino <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]> Co-authored-by: Feng <[email protected]> Co-authored-by: Adkid-Zephyr <[email protected]> Co-authored-by: PIYUSH RATHORE <[email protected]> Co-authored-by: Sarah Fortune <[email protected]> Co-authored-by: Sarah Fortune <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]> Co-authored-by: Thorsten Stresow <[email protected]> Co-authored-by: kiranmagic7 <[email protected]> Co-authored-by: Kiran Magic <[email protected]> Co-authored-by: Kiran Magic <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]> Co-authored-by: Kiran <[email protected]> Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: xingzhou <[email protected]> Co-authored-by: Leon-SK668 <[email protected]>
zeroaltitude
pushed a commit
that referenced
this pull request
Sep 27, 2026
…agent in chat (openclaw#158120) ## What Problem This Solves Fixes: owners who ask their agent in chat to change a key, a config value, or one of their own skills get refused, sent to a dashboard, or told to file a Workshop proposal. Examples: "you can't post API keys here", switching the embeddings provider routed to the web-search wizard, only proposals for handwritten skills. ## User Impact An owner can hand the agent an API key or token in chat, ask it to change config such as the embeddings provider, and have it edit skills they own. Session permission modes are unchanged: Full Access applies, restricted sessions ask. - **Keys from chat.** Masked setup flows still keep keys out of model context and remain the default. If the user already pasted a key or token, the agent stores it in the shared secret store and points the config key at it with a `store` SecretRef instead of refusing. It never echoes the value back. The pasted message already reached the model provider and transcript; redaction covers later logs and output only, and the docs say so. - **Existing store entries are never touched.** Each save inserts a new entry named after the config key plus a random suffix (`GATEWAY_REMOTE_TOKEN_9B139B5E231299BC`). Nothing is overwritten, revived, or deleted, and a new name can never match anything already pointing into the store, including a stale reference to a removed and purged entry. Replacing a key leaves its previous entry for `openclaw secrets store rm`. Rotating a key keeps its configured store provider alias, and the audit records the alias actually used. - **Embeddings.** The agent now treats the memory embeddings provider, model, and key as `memory.search.*` config, not the web-search setup wizard. - **Skills.** When the user asks, the agent edits skills they own directly: repository skill source, workspace `skills/`, project `.agents/skills/`, and configured extra skill directories. Bundled, ClawHub-installed, and plugin-provided skills are replaced by their owners' updates. For those, the agent says so and offers to capture the change as a Workshop skill. - **Tone.** The "never request / paste credentials in chat" lines are gone from the `openclaw` tools and system-agent prompts. "Never echo secret values" stays, and so do factual pointers for flows that genuinely need a UI: channel sign-in, provider OAuth/accounts, and model onboarding. No config option, schema, or protocol change. The Full Access permission-policy floor from the first revision moved to openclaw#158142 for its own security review. ## Why This Change Was Made After openclaw#149870, approved config writes may target any path. What still blocked owners was model-facing text telling the agent to refuse credentials, plus the missing ability to store a chat-provided value anywhere but plaintext config. `config_set_ref` gains an optional `secret` argument (read without trimming; only emptiness is checked). With it, the system agent: 1. registers the value for redaction when the proposal is built; 2. keeps the key's existing store provider alias when it has one; 3. sends one `secrets.writeForConfigRef` command to the SQLite state worker with the requester's live-authority guard. The host re-checks that guard at the worker's transaction and commit admission (`createSqliteWorkerWriteAdmission`), so a run stopped while the command is queued writes nothing. The transaction inserts a new row under a freshly minted `NAME_<16 random hex>`; 4. writes the ref through the existing config writer, which re-checks authority. If that write fails (before or after the writer commits), OpenClaw rereads the config and the error says the key was saved as `<NAME>` and whether the config key points at it. There is no automatic delete: another consumer may have linked the fresh entry, or the writer may have committed before failing; 5. the normal config reload picks up the new ref, since its id always changes. Nothing new runs SQLite on the Gateway main thread. <details> <summary>Out of scope / follow-ups</summary> - Found while proving this: in Full Access, after a delegated change applies, the next agent turn in the same chat fails with `SQLite database already belongs to another worker backend`. It reproduces on unmodified `origin/main` (`71bb516`) with a `logging.level` change followed by one more message. This PR does not fix it. - Built-in provider sign-in and model onboarding stay handoffs; they own live verification of the active inference route. - Other secret-store set/delete paths remain synchronous migration debt, as `worker-access.md` already records. </details> ## Evidence Real Telegram Test Server (Convex-leased userbot, fresh Gateway, QA mock provider, Full Access, tester is owner), first revision: | | Screenshot | |---|---| | Token given in chat, applied with no approval prompt and no refusal (synthetic QA token) |  | ### Final effects at this head qa-channel scenario `system-agent-owner-trust` passes through a real Gateway and state worker. The Gateway is seeded with an unrelated `GATEWAY_REMOTE_TOKEN` entry, then: 1. A command-allowed **non-owner** (`bob`) sends the key. The `openclaw` tool is owner-only. 2. The **owner** (`alice`, Full Access) sends it. Captured step details (redacted by the Gateway; the store ref id prints as `__OPENCLAW_REDACTED__`): ```json { "nonOwnerEntryNames": ["GATEWAY_REMOTE_TOKEN"], "storedRef": { "source": "store", "provider": "default", "id": "__OPENCLAW_REDACTED__" }, "storeEntryNames": ["GATEWAY_REMOTE_TOKEN", "GATEWAY_REMOTE_TOKEN_9B139B5E231299BC"] } ``` - After the non-owner turn: only the seeded entry exists and `gateway.remote.token` is unset. - After the owner turn: `gateway.remote.token` is a `store` SecretRef, the token is in its own minted entry (`GATEWAY_REMOTE_TOKEN_9B139B5E231299BC`), and the seeded entry's `updatedAt`/`updatedBy` are unchanged. No approval prompt was posted, and the token is absent from chat, config, and the store listing. **Revoked request**, through the production worker (Node main thread, real broker, `writeSecretStoreEntryForConfigRef`). The requester's guard passes the caller's check, then reports the run stopped: ```text seeded: [ 'GATEWAY_REMOTE_TOKEN (cli)' ] revoked request rejected: requesting run is no longer active after revoked request: [ 'GATEWAY_REMOTE_TOKEN (cli)' ] owner request saved as: GATEWAY_REMOTE_TOKEN_F1657B971F691824 after owner request: [ 'GATEWAY_REMOTE_TOKEN (cli)', 'GATEWAY_REMOTE_TOKEN_F1657B971F691824 (openclaw)' ] seeded value intact: true ``` Tests (each fails without the behavior it covers): - production worker path (`secret-store-config-ref.worker.test.ts`, forked database-worker lane with the real broker): a chat secret gets its own minted entry beside a live `GATEWAY_REMOTE_TOKEN` without touching it; a requester revoked after the caller's check writes nothing; - store kernel: a refusal at commit admission rolls the transaction back; each save mints a new `NAME_<hex>` and leaves the key's previous entry unchanged; a stale name whose entry was removed and purged still resolves to nothing after a chat save; - operations: stored and referenced with no value in output or audit; authority gone before the store write writes nothing; a failed config write names the saved entry and leaves it in place; rotating a key keeps its configured store provider alias, and the audit records it; - tool: proposes a store write without repeating the key, preserving leading and trailing whitespace. Measured single-worker wall time per new or materially changed test file at this head (`node scripts/run-vitest.mjs run <file>`, local M-series; vitest Duration includes import and setup): | File | Tests | Wall | Vitest duration | |---|---:|---:|---:| | `src/secrets/store/secret-store-config-ref.worker.test.ts` (new, database-worker lane) | 2 | 14 s | 2.05 s | | `src/secrets/store/secret-store.test.ts` | 32 | 16 s | 13.37 s | | `src/system-agent/operations.test.ts` | 43 | 18 s | 15.30 s | | `src/agents/tools/system-agent-tool.test.ts` | 36 | 15 s | 12.89 s | QA scenarios: `system-agent-owner-trust` (mock-openai) runs in about 27 s after build; `skill-owner-direct-edit-live` is live-frontier only and took about 3 min with `claude-cli/claude-sonnet-4-6`. Wording pins for the removed lecture text were deleted. The focused store, worker, exclusivity, operations, tool, approval, and delegate suites pass. `node scripts/check-changed.mjs` passes every gate except core lint, which fails only on three files this PR does not touch (`server-chat-metadata-lifecycle.integration.test.ts`, `session-companion-ask.ts`, `app-sidebar-session-list-render.ts` over `max-lines` on the base); oxlint on the changed files is clean. Security decision: a Full Access owner's pasted key goes to the Gateway-wide team store without a separate approval. Maintainer (@obviyus) accepted this in the PR conversation. **Rotation with a second consumer**, through the production worker (Node main thread, real broker). A second consumer references the key's first entry before the next save lands; value fingerprints only: ```text owner saves key #1 -> MODELS_PROVIDERS_OPENAI_API_KEY_6D96F6E92B59E935 (sha256:4a5c5a4aa8de) second consumer now references MODELS_PROVIDERS_OPENAI_API_KEY_6D96F6E92B59E935 (e.g. linked while the next save is queued) owner saves key #2 -> MODELS_PROVIDERS_OPENAI_API_KEY_4066F18ABAAE6903 (sha256:28bc4e3fe10d) second consumer's entry MODELS_PROVIDERS_OPENAI_API_KEY_6D96F6E92B59E935 after rotation: sha256:4a5c5a4aa8de unchanged: true ``` **Config write fails after the save, with a second consumer on the fresh entry**, through the production worker and the system-agent apply path (fingerprints only): ```text owner result: Saved the secret as GATEWAY_REMOTE_TOKEN_6B68C031E571F81C, but could not point gateway.remote.token at it: config write failed after commit (rollbackStatus: not-restored). Retry, or remove the entry with `openclaw secrets store rm GATEWAY_REMOTE_TOKEN_6B68C031E571F81C`. config gateway.remote.token: null second consumer's entry GATEWAY_REMOTE_TOKEN_6B68C031E571F81C: sha256:09ae5b4fd36b second consumer keeps the credential: true ``` **Stale reference to a removed and purged entry**, production worker for purge and save: ```text purged rows: 1 stale ref GATEWAY_REMOTE_TOKEN after purge: SECRET_STORE_NOT_FOUND chat save -> GATEWAY_REMOTE_TOKEN_8F698B5396990ADD resolves (value hidden) stale ref GATEWAY_REMOTE_TOKEN after chat save: SECRET_STORE_NOT_FOUND ``` **Owned-skill edit with a live model.** New scenario `skill-owner-direct-edit-live` (live-frontier; run with `claude-cli/claude-sonnet-4-6`, subscription auth) passes at this head. It seeds workspace skill `qa-owner-greeting` replying `OWNER-GREETING-V1`, and the owner asks in plain words: "Please change my qa-owner-greeting skill so it replies OWNER-GREETING-V2 instead of OWNER-GREETING-V1." Captured result: Skill file after the turn: ```markdown --- name: qa-owner-greeting description: Greets the owner with a fixed marker --- When the user asks for the owner greeting, reply with exactly: OWNER-GREETING-V2 ``` Agent reply: "Let me find the skill file. Done. The `qa-owner-greeting` skill now replies `OWNER-GREETING-V2` instead of `OWNER-GREETING-V1`." The model edited the skill file in place and confirmed it; it did not refuse or file a Workshop proposal. Co-authored-by: Ayaan Zaidi <[email protected]>
zeroaltitude
pushed a commit
that referenced
this pull request
Oct 8, 2026
openclaw#166738) Builds on openclaw#166737 (merged: curated `scripts/lib/recommended-models.json` + shared `canonicalModelKey`/`canonicalModelFamily`/`compareModelRecency`); this PR only adds the helper script and its test. ## What Problem This Solves The recommended-models list is now curated by hand, so a maintainer needs a daily, reviewable signal for what to change: new releases, Arena reorderings, and entries that are retired or no longer served. ## User Impact No user-visible change. Maintainers (and later a daily draft-PR agent) can run ``` OPENROUTER_API_KEY=... node --import ./scripts/tsx.mjs scripts/suggest-recommended-models.mts [--list <path>] ``` and get a markdown report ending in a unified diff against `scripts/lib/recommended-models.json`. The list file is never written; a human edits it. ## Why This Change Was Made TypeScript port of the recv2 prototype's ranking: LMArena Agent Arena score first; equal scores, and models without one, order by OpenRouter 30-day usage. The newest served family member without its own Arena row takes the slot of its newest ranked older sibling, counting at least that sibling's usage, so it sorts directly ahead of it (release date decides recency, so grok-4.20 does not outrank grok-4.7). DeepSWE is dropped; `-fast` and other serving variants fold into the base model. - Inputs: every run fetches each source fresh, with no cache; a failed request or a response that fails schema validation fails that run. Sources: LMArena Agent Arena `agent/latest` through the HF datasets-server JSON rows endpoint (no parquet dependency), OpenRouter `/api/v1/models`, OpenRouter `rankings-daily` (only when `OPENROUTER_API_KEY` is set; otherwise curated entries without an Arena score keep their order), Vercel `/v1/models`, and the hosted catalog v2. - Identity: each source id resolves once through the shared `canonicalModelKey`, with its display name, so dated aliases join their versioned model. Examples: `mistral-small-2603` is Mistral Small 4, OpenRouter `mistral-large-4-0` matches Vercel `mistral-large-4`, and usage arrives through OpenRouter `canonical_slug`. Non-chat models are excluded by gateway modality or type labels; `-latest` aliases are excluded. - Report sections: - **New models:** first seen within 7 days and not listed. Each shows its likely same-family predecessor and both prices, and is flagged `possible new class` when either price differs by more than 2x or the family has no predecessor. - **Arena moves:** rank changes among entries both lists keep, largest first. - **Gone or deprecated:** first-party retired with its replacement, no longer served, or no signal. - **Suggested list:** the full ordered list plus the diff. No overlap with Pash/Sarah changes (the PR adds one new file). ## Evidence - Port fidelity: on the live inputs, the helper reproduced the prototype's 86-id suggested list exactly before the review-driven identity fixes. Two differences remain, and openclaw#166737's seed list already includes both: `mistral-medium-2604` is folded into `mistral-medium-3.5` because they are the same model, and `ling-3.0-flash-*` is now spelled `ling-3-flash-*` because zero minor versions fold. - Typecheck: `node scripts/run-tsgo.mjs -p tsconfig.scripts.json` and `tsgo:test:root` report no errors; scoped oxlint and oxfmt are clean. `canonical-model-key.test.ts` passed 32/32. - Ordering: `test/scripts/suggest-recommended-models.test.ts` feeds stubbed sources through the real entry point. Two models tied on Arena score order by usage (the higher-usage one first, against alphabetical order), and a successor that inherits its sibling's Arena slot still sorts ahead of that higher-usage sibling. With the previous alphabetical tiebreak the test fails. - Cost: `pnpm test test/scripts/suggest-recommended-models.test.ts --maxWorkers=1` takes 2.2 s wall end to end (Vitest 0.78 s; the test itself 9 ms). CI on this head: run 37692398322, green in 595 s wall and 5,717 job-seconds across 58 jobs for the whole PR; the new test adds about 9 ms of that. - Error and fallback paths: a list containing `claude-opus-4.8` reported "retired by its first-party provider; replaced by claude-opus-5", and `nonexistent-model-9` reported "no host serves it". A missing `--list` file exits 1 with a clear message. Without a key, the report states that usage was skipped and keeps unscored curated entries. With an invalid `OPENROUTER_API_KEY`, the run exits 1 with `https://openrouter.ai/api/v1/datasets/rankings-daily returned HTTP 401` and prints no report. - Live run: all inputs were fetched fresh (5 requests, 3.9 s wall). Both outputs below are copied verbatim. In the live data the only exact Arena ties are successor/sibling pairs (`gpt-5.6`/`gpt-5.4`, `mimo-v2.6-pro`/`mimo-v2.5-pro`), and each successor sorts first. Run against the curated list in openclaw#166737, using the default path: # Recommended models suggestion, 2026-10-07 ## Sources - LMArena Agent Arena, published 2026-10-02: 50 rows, 48 models. Source: LMArena Agent Arena (lmarena-ai/leaderboard-dataset), CC BY 4.0. - OpenRouter rankings-daily 2026-09-07..2026-10-06. Source: OpenRouter (openrouter.ai/rankings), as of 2026-10-07T21:06:52.590Z. Licensed under CC BY 4.0. - Catalog v2 generated 2026-09-29 (1039 rows), OpenRouter models (467), Vercel AI Gateway models (415): 490 served chat models. ## New models (first seen in the last 7 days, not listed) | model | first seen | suggested | price in/out per 1M | predecessor | predecessor price | note | | --- | --- | --- | --- | --- | --- | --- | | glyph-cluster | 2026-10-07 | no signal yet | ? | none | | possible new class: no predecessor | | mistral-large-4 | 2026-10-06 | no signal yet | $0.68 / $2.09 | mistral-large-3 | $0.5 / $1.5 | | | apodex-1.1-mini | 2026-10-01 | no signal yet | ? | none | | possible new class: no predecessor | | pareto-26.10-preview | 2026-10-01 | no signal yet | $0.8 / $3.2 | none | | possible new class: no predecessor | ## Arena moves None. ## Gone or deprecated None. ## Suggested list <details><summary>85 models</summary> | # | model | signal | | --- | --- | --- | | 1 | claude-fable-5.1 | Arena 0.143 (#1) | | 2 | claude-opus-5.5 | Arena 0.138 (#2) | | 3 | claude-sonnet-5.5 | Arena 0.125 (#3) | | 4 | gpt-6-astra | Arena 0.123 (#4) | | 5 | gpt-6.1-sol | Arena 0.112 (#5) | | 6 | gpt-6-sol | Arena 0.097 (#6) | | 7 | claude-opus-5 | Arena 0.087 (#7) | | 8 | claude-fable-5 | Arena 0.082 (#8) | | 9 | gpt-5.6-sol | Arena 0.065 (#12) | | 10 | claude-sonnet-5 | Arena 0.044 (#13) | | 11 | kimi-k3 | Arena 0.042 (#14) | | 12 | grok-4.7 | Arena 0.040 (#16) | | 13 | deepseek-v4.1-flash | Arena 0.040 (#17) | | 14 | muse-spark-1.3 | Arena 0.040 (#18) | | 15 | hy4-preview | Arena 0.040 (#19) | | 16 | glm-5.2 | Arena 0.035 (#20) | | 17 | gemini-3.8-flash | Arena 0.030 (#21) | | 18 | qwen3.8-max | Arena 0.025 (openclaw#22) | | 19 | glm-5.3 | Arena 0.024 (openclaw#23) | | 20 | gpt-6-luna | Arena 0.014 (openclaw#24) | | 21 | grok-4.6 | Arena 0.013 (openclaw#25) | | 22 | grok-4.5 | Arena 0.012 (openclaw#26) | | 23 | deepseek-v4-pro | Arena 0.012 (openclaw#27) | | 24 | gpt-5.6 | Arena 0.011 (openclaw#28) via gpt-5.4 | | 25 | gpt-5.4 | Arena 0.011 (openclaw#28) | | 26 | step-5-preview | Arena 0.005 (openclaw#30) | | 27 | gpt-5.6-terra | Arena 0.004 (openclaw#31) | | 28 | glm-5.3-flash | Arena -0.004 (openclaw#32) | | 29 | mimo-v2.6-flash | Arena -0.006 (openclaw#33) | | 30 | gpt-5.6-luna | Arena -0.012 (openclaw#35) | | 31 | gemini-3.7-flash | Arena -0.015 (openclaw#36) | | 32 | qwen3.8-27b | Arena -0.017 (openclaw#37) | | 33 | muse-spark-1.2 | Arena -0.033 (openclaw#38) | | 34 | muse-spark-1.1 | Arena -0.049 (openclaw#39) | | 35 | qwen3.7-max | Arena -0.051 (openclaw#40) | | 36 | hy3 | Arena -0.054 (openclaw#41) | | 37 | minimax-m3 | Arena -0.069 (openclaw#42) | | 38 | qwen3.7-plus | Arena -0.072 (openclaw#43) | | 39 | mimo-v2.6-pro | Arena -0.075 (openclaw#44) via mimo-v2.5-pro | | 40 | mimo-v2.5-pro | Arena -0.075 (openclaw#44) | | 41 | gemini-3.6-flash | Arena -0.077 (openclaw#45) | | 42 | gemini-3.1-pro-preview | Arena -0.077 (openclaw#46) | | 43 | inkling-small | Arena -0.103 (openclaw#47) | | 44 | inkling | Arena -0.109 (openclaw#48) | | 45 | mistral-medium-3.5 | Arena -0.124 (openclaw#49) | | 46 | solar-pro4 | Arena -0.159 (openclaw#50) | | 47 | space-bunny-alpha | OpenRouter 56.7T | | 48 | deepseek-v4-flash | OpenRouter 53.3T | | 49 | nemotron-3-ultra-550b-a55b | OpenRouter 21.1T | | 50 | mimo-v2.5 | OpenRouter 18.9T | | 51 | laguna-s-2.1 | OpenRouter 4.6T | | 52 | gemini-3-flash-preview | OpenRouter 3.4T | | 53 | ling-3-flash-fin | OpenRouter 3.4T | | 54 | gemini-2.5-flash-lite | OpenRouter 3.0T | | 55 | nemotron-3.5-lightning | OpenRouter 2.7T | | 56 | gpt-oss-120b | OpenRouter 2.5T | | 57 | dots-3-note-preview | OpenRouter 2.4T | | 58 | gemini-3.1-flash-lite | OpenRouter 2.1T | | 59 | gemini-2.5-flash | OpenRouter 2.0T | | 60 | qwen3.8-flash | OpenRouter 1.8T | | 61 | gemma-4-31b | OpenRouter 1.7T | | 62 | claude-sonnet-4.6 | OpenRouter 1.4T | | 63 | deepseek-v3.2 | OpenRouter 1.4T | | 64 | qwen3.7-flash | OpenRouter 1.4T | | 65 | ling-3-flash-sante | OpenRouter 1.2T | | 66 | nemotron-3-super-120b-a12b | OpenRouter 1.2T | | 67 | nex-n2.5-pro | OpenRouter 1.1T | | 68 | ling-3-flash-vl | OpenRouter 1.0T | | 69 | gpt-6-luna-pro | OpenRouter 853B | | 70 | gemma-4-26b-a4b | OpenRouter 845B | | 71 | gpt-5.6-luna-pro | OpenRouter 566B | | 72 | solar-mini4 | OpenRouter 510B | | 73 | deepseek-v4-flash-vision-exp | OpenRouter 430B | | 74 | mistral-nemo | OpenRouter 384B | | 75 | ling-3.1-flash | OpenRouter 298B | | 76 | glm-5.3-flashx | OpenRouter 187B | | 77 | gpt-oss-20b | OpenRouter 127B | | 78 | gemini-3.5-flash-lite | OpenRouter 124B | | 79 | minimax-m2.7 | OpenRouter 113B | | 80 | gpt-4o-mini | OpenRouter 89B | | 81 | claude-haiku-5.5 | OpenRouter 82B via claude-haiku-4.5 | | 82 | claude-haiku-4.5 | OpenRouter 82B | | 83 | claude-opus-4.7 | OpenRouter 55B | | 84 | step-3.7-flash | OpenRouter 50B | | 85 | claude-sonnet-4.5 | OpenRouter 46B | </details> No changes to the curated list. <details><summary>Same inputs against the 2026-09-27 list (shows Arena moves, a drop, a 10x price flag and the diff)</summary> # Recommended models suggestion, 2026-10-07 ## Sources - LMArena Agent Arena, published 2026-10-02: 50 rows, 48 models. Source: LMArena Agent Arena (lmarena-ai/leaderboard-dataset), CC BY 4.0. - OpenRouter rankings-daily 2026-09-07..2026-10-06. Source: OpenRouter (openrouter.ai/rankings), as of 2026-10-07T21:07:02.742Z. Licensed under CC BY 4.0. - Catalog v2 generated 2026-09-29 (1039 rows), OpenRouter models (467), Vercel AI Gateway models (415): 490 served chat models. ## New models (first seen in the last 7 days, not listed) | model | first seen | suggested | price in/out per 1M | predecessor | predecessor price | note | | --- | --- | --- | --- | --- | --- | --- | | claude-haiku-5.5 | 2026-10-07 | openclaw#81 | $0.1 / $0.5 | claude-haiku-4.5 | $1 / $5 | possible new class: price 10.0x | | glyph-cluster | 2026-10-07 | no signal yet | ? | none | | possible new class: no predecessor | | mistral-large-4 | 2026-10-06 | no signal yet | $0.68 / $2.09 | mistral-large-3 | $0.5 / $1.5 | | | apodex-1.1-mini | 2026-10-01 | no signal yet | ? | none | | possible new class: no predecessor | | pareto-26.10-preview | 2026-10-01 | no signal yet | $0.8 / $3.2 | none | | possible new class: no predecessor | ## Arena moves | model | listed | suggested | signal | | --- | --- | --- | --- | | mimo-v2.6-flash | openclaw#47 | openclaw#29 | Arena -0.006 (openclaw#33) | | gpt-6-luna | openclaw#24 | #20 | Arena 0.014 (openclaw#24) | | grok-4.7 | #15 | #12 | Arena 0.040 (#16) | | deepseek-v4-pro | #16 | openclaw#23 | Arena 0.012 (openclaw#27) | | gemini-3.8-flash | #11 | #17 | Arena 0.030 (#21) | | hy4-preview | #10 | #15 | Arena 0.040 (#19) | | mimo-v2.6-pro | openclaw#32 | openclaw#39 | Arena -0.075 (openclaw#44) via mimo-v2.5-pro | | mimo-v2.5-pro | openclaw#33 | openclaw#40 | Arena -0.075 (openclaw#44) | | gemini-3.1-pro-preview | openclaw#35 | openclaw#42 | Arena -0.077 (openclaw#46) | | solar-pro4 | openclaw#45 | openclaw#46 | Arena -0.159 (openclaw#50) | | gpt-6-sol | #6 | #6 | Arena 0.097 (#6) | | muse-spark-1.3 | #14 | #14 | Arena 0.040 (#18) | | qwen3.8-max | #18 | #18 | Arena 0.025 (openclaw#22) | | gpt-5.6-terra | #21 | openclaw#27 | Arena 0.004 (openclaw#31) | | qwen3.7-plus | openclaw#36 | openclaw#38 | Arena -0.072 (openclaw#43) | | claude-opus-5.5 | #3 | #2 | Arena 0.138 (#2) | | gpt-6-astra | #2 | #4 | Arena 0.123 (#4) | | claude-opus-5 | #4 | #7 | Arena 0.087 (#7) | | claude-fable-5 | #5 | #8 | Arena 0.082 (#8) | | deepseek-v4.1-flash | #12 | #13 | Arena 0.040 (#17) | | glm-5.2 | #13 | #16 | Arena 0.035 (#20) | | grok-4.6 | #20 | #21 | Arena 0.013 (openclaw#25) | | grok-4.5 | #19 | openclaw#22 | Arena 0.012 (openclaw#26) | | glm-5.3-flash | openclaw#23 | openclaw#28 | Arena -0.004 (openclaw#32) | | gpt-5.6-luna | openclaw#25 | openclaw#30 | Arena -0.012 (openclaw#35) | | gemini-3.7-flash | openclaw#26 | openclaw#31 | Arena -0.015 (openclaw#36) | | qwen3.8-27b | openclaw#27 | openclaw#32 | Arena -0.017 (openclaw#37) | | muse-spark-1.2 | openclaw#28 | openclaw#33 | Arena -0.033 (openclaw#38) | | muse-spark-1.1 | openclaw#29 | openclaw#34 | Arena -0.049 (openclaw#39) | | qwen3.7-max | openclaw#30 | openclaw#35 | Arena -0.051 (openclaw#40) | | hy3 | openclaw#31 | openclaw#36 | Arena -0.054 (openclaw#41) | | minimax-m3 | openclaw#34 | openclaw#37 | Arena -0.069 (openclaw#42) | | inkling-small | openclaw#38 | openclaw#43 | Arena -0.103 (openclaw#47) | | inkling | openclaw#39 | openclaw#44 | Arena -0.109 (openclaw#48) | | mistral-medium-3.5 | openclaw#40 | openclaw#45 | Arena -0.124 (openclaw#49) | 29 usage-ranked entries also move; see the diff. ## Gone or deprecated - ling-3.0-flash-fin: no host serves it - ling-3.0-flash-vl: no host serves it - ling-3.0-flash-sante: no host serves it - kimi-k2.6: no Arena score and no OpenRouter usage in the window ## Suggested list <details><summary>85 models</summary> | # | model | signal | | --- | --- | --- | | 1 | claude-fable-5.1 | Arena 0.143 (#1) | | 2 | claude-opus-5.5 | Arena 0.138 (#2) | | 3 | claude-sonnet-5.5 | Arena 0.125 (#3) | | 4 | gpt-6-astra | Arena 0.123 (#4) | | 5 | gpt-6.1-sol | Arena 0.112 (#5) | | 6 | gpt-6-sol | Arena 0.097 (#6) | | 7 | claude-opus-5 | Arena 0.087 (#7) | | 8 | claude-fable-5 | Arena 0.082 (#8) | | 9 | gpt-5.6-sol | Arena 0.065 (#12) | | 10 | claude-sonnet-5 | Arena 0.044 (#13) | | 11 | kimi-k3 | Arena 0.042 (#14) | | 12 | grok-4.7 | Arena 0.040 (#16) | | 13 | deepseek-v4.1-flash | Arena 0.040 (#17) | | 14 | muse-spark-1.3 | Arena 0.040 (#18) | | 15 | hy4-preview | Arena 0.040 (#19) | | 16 | glm-5.2 | Arena 0.035 (#20) | | 17 | gemini-3.8-flash | Arena 0.030 (#21) | | 18 | qwen3.8-max | Arena 0.025 (openclaw#22) | | 19 | glm-5.3 | Arena 0.024 (openclaw#23) | | 20 | gpt-6-luna | Arena 0.014 (openclaw#24) | | 21 | grok-4.6 | Arena 0.013 (openclaw#25) | | 22 | grok-4.5 | Arena 0.012 (openclaw#26) | | 23 | deepseek-v4-pro | Arena 0.012 (openclaw#27) | | 24 | gpt-5.6 | Arena 0.011 (openclaw#28) via gpt-5.4 | | 25 | gpt-5.4 | Arena 0.011 (openclaw#28) | | 26 | step-5-preview | Arena 0.005 (openclaw#30) | | 27 | gpt-5.6-terra | Arena 0.004 (openclaw#31) | | 28 | glm-5.3-flash | Arena -0.004 (openclaw#32) | | 29 | mimo-v2.6-flash | Arena -0.006 (openclaw#33) | | 30 | gpt-5.6-luna | Arena -0.012 (openclaw#35) | | 31 | gemini-3.7-flash | Arena -0.015 (openclaw#36) | | 32 | qwen3.8-27b | Arena -0.017 (openclaw#37) | | 33 | muse-spark-1.2 | Arena -0.033 (openclaw#38) | | 34 | muse-spark-1.1 | Arena -0.049 (openclaw#39) | | 35 | qwen3.7-max | Arena -0.051 (openclaw#40) | | 36 | hy3 | Arena -0.054 (openclaw#41) | | 37 | minimax-m3 | Arena -0.069 (openclaw#42) | | 38 | qwen3.7-plus | Arena -0.072 (openclaw#43) | | 39 | mimo-v2.6-pro | Arena -0.075 (openclaw#44) via mimo-v2.5-pro | | 40 | mimo-v2.5-pro | Arena -0.075 (openclaw#44) | | 41 | gemini-3.6-flash | Arena -0.077 (openclaw#45) | | 42 | gemini-3.1-pro-preview | Arena -0.077 (openclaw#46) | | 43 | inkling-small | Arena -0.103 (openclaw#47) | | 44 | inkling | Arena -0.109 (openclaw#48) | | 45 | mistral-medium-3.5 | Arena -0.124 (openclaw#49) | | 46 | solar-pro4 | Arena -0.159 (openclaw#50) | | 47 | space-bunny-alpha | OpenRouter 56.7T | | 48 | deepseek-v4-flash | OpenRouter 53.3T | | 49 | nemotron-3-ultra-550b-a55b | OpenRouter 21.1T | | 50 | mimo-v2.5 | OpenRouter 18.9T | | 51 | laguna-s-2.1 | OpenRouter 4.6T | | 52 | gemini-3-flash-preview | OpenRouter 3.4T | | 53 | ling-3-flash-fin | OpenRouter 3.4T | | 54 | gemini-2.5-flash-lite | OpenRouter 3.0T | | 55 | nemotron-3.5-lightning | OpenRouter 2.7T | | 56 | gpt-oss-120b | OpenRouter 2.5T | | 57 | dots-3-note-preview | OpenRouter 2.4T | | 58 | gemini-3.1-flash-lite | OpenRouter 2.1T | | 59 | gemini-2.5-flash | OpenRouter 2.0T | | 60 | qwen3.8-flash | OpenRouter 1.8T | | 61 | gemma-4-31b | OpenRouter 1.7T | | 62 | claude-sonnet-4.6 | OpenRouter 1.4T | | 63 | deepseek-v3.2 | OpenRouter 1.4T | | 64 | qwen3.7-flash | OpenRouter 1.4T | | 65 | ling-3-flash-sante | OpenRouter 1.2T | | 66 | nemotron-3-super-120b-a12b | OpenRouter 1.2T | | 67 | nex-n2.5-pro | OpenRouter 1.1T | | 68 | ling-3-flash-vl | OpenRouter 1.0T | | 69 | gpt-6-luna-pro | OpenRouter 853B | | 70 | gemma-4-26b-a4b | OpenRouter 845B | | 71 | gpt-5.6-luna-pro | OpenRouter 566B | | 72 | solar-mini4 | OpenRouter 510B | | 73 | deepseek-v4-flash-vision-exp | OpenRouter 430B | | 74 | mistral-nemo | OpenRouter 384B | | 75 | ling-3.1-flash | OpenRouter 298B | | 76 | glm-5.3-flashx | OpenRouter 187B | | 77 | gpt-oss-20b | OpenRouter 127B | | 78 | gemini-3.5-flash-lite | OpenRouter 124B | | 79 | minimax-m2.7 | OpenRouter 113B | | 80 | gpt-4o-mini | OpenRouter 89B | | 81 | claude-haiku-5.5 | OpenRouter 82B via claude-haiku-4.5 | | 82 | claude-haiku-4.5 | OpenRouter 82B | | 83 | claude-opus-4.7 | OpenRouter 55B | | 84 | step-3.7-flash | OpenRouter 50B | | 85 | claude-sonnet-4.5 | OpenRouter 46B | </details> ```diff --- a/../../../../../../tmp/recprobe/list-20260927.json +++ b/../../../../../../tmp/recprobe/list-20260927.json @@ -1,80 +1,87 @@ [ "claude-fable-5.1", - "gpt-6-astra", "claude-opus-5.5", + "claude-sonnet-5.5", + "gpt-6-astra", + "gpt-6.1-sol", + "gpt-6-sol", "claude-opus-5", "claude-fable-5", - "gpt-6-sol", "gpt-5.6-sol", "claude-sonnet-5", "kimi-k3", - "hy4-preview", - "gemini-3.8-flash", + "grok-4.7", "deepseek-v4.1-flash", - "glm-5.2", "muse-spark-1.3", - "grok-4.7", - "deepseek-v4-pro", - "glm-5.3", + "hy4-preview", + "glm-5.2", + "gemini-3.8-flash", "qwen3.8-max", - "grok-4.5", + "glm-5.3", + "gpt-6-luna", "grok-4.6", - "gpt-5.6-terra", + "grok-4.5", + "deepseek-v4-pro", + "gpt-5.6", "gpt-5.4", + "step-5-preview", + "gpt-5.6-terra", "glm-5.3-flash", - "gpt-6-luna", + "mimo-v2.6-flash", "gpt-5.6-luna", "gemini-3.7-flash", "qwen3.8-27b", "muse-spark-1.2", "muse-spark-1.1", "qwen3.7-max", "hy3", - "mimo-v2.6-pro", - "mimo-v2.5-pro", "minimax-m3", - "gemini-3.1-pro-preview", "qwen3.7-plus", + "mimo-v2.6-pro", + "mimo-v2.5-pro", "gemini-3.6-flash", + "gemini-3.1-pro-preview", "inkling-small", "inkling", "mistral-medium-3.5", + "solar-pro4", + "space-bunny-alpha", "deepseek-v4-flash", - "mimo-v2.5", "nemotron-3-ultra-550b-a55b", - "space-bunny-alpha", - "solar-pro4", + "mimo-v2.5", "laguna-s-2.1", - "mimo-v2.6-flash", - "ling-3.0-flash-fin", "gemini-3-flash-preview", - "nemotron-3.5-lightning", + "ling-3-flash-fin", "gemini-2.5-flash-lite", - "claude-sonnet-4.6", + "nemotron-3.5-lightning", "gpt-oss-120b", - "gemini-2.5-flash", - "gemini-3.1-flash-lite", "dots-3-note-preview", - "deepseek-v3.2", - "gemma-4-31b", + "gemini-3.1-flash-lite", + "gemini-2.5-flash", "qwen3.8-flash", + "gemma-4-31b", + "claude-sonnet-4.6", + "deepseek-v3.2", + "qwen3.7-flash", + "ling-3-flash-sante", "nemotron-3-super-120b-a12b", + "nex-n2.5-pro", + "ling-3-flash-vl", + "gpt-6-luna-pro", "gemma-4-26b-a4b", "gpt-5.6-luna-pro", - "qwen3.7-flash", - "ling-3.0-flash-vl", - "minimax-m2.7", + "solar-mini4", "deepseek-v4-flash-vision-exp", - "gpt-oss-20b", - "ling-3.0-flash-sante", - "step-3.7-flash", - "claude-haiku-4.5", "mistral-nemo", - "gpt-4o-mini", + "ling-3.1-flash", "glm-5.3-flashx", + "gpt-oss-20b", "gemini-3.5-flash-lite", - "gpt-6-luna-pro", + "minimax-m2.7", + "gpt-4o-mini", + "claude-haiku-5.5", + "claude-haiku-4.5", "claude-opus-4.7", - "claude-sonnet-4.5", - "kimi-k2.6" + "step-3.7-flash", + "claude-sonnet-4.5" ] ``` </details> ## Merge danger This is a two-way door: it adds one new dev script and its test, writes no files, and is never wired into CI or publishing. A revert removes it completely. If it is wrong, the impact is limited to a misleading suggestion report that a human reviews before editing the list. Co-authored-by: Ayaan Zaidi <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
recomputeNextRuns() is called by ensureLoaded(forceReload) which runs inside onTimer() before runDueJobs(). When the timer fires at (or just after) the exact trigger time, recomputeNextRuns would call computeNextRunAtMs(job, now) which advances nextRunAtMs to the next occurrence. By the time runDueJobs() checks 'now >= nextRunAtMs', the slot has already been advanced — the job is silently skipped.
Fix: in recomputeNextRuns, if a job's nextRunAtMs is in the past (due), it has no runningAtMs (not currently executing), and lastRunAtMs is before the current slot (hasn't been executed for this occurrence), preserve the existing nextRunAtMs so runDueJobs can fire it.
This is a TOCTOU race that affects all recurring schedule types (cron expressions, every-interval) when the timer callback runs at or just after the scheduled time.
Adds 5 unit tests for recomputeNextRuns covering: