openclaw - 💡(How to fix) Fix await loadControlRuntime() issues in multifiles. [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#61761Fetched 2026-04-08 02:54:50
View on GitHub
Comments
1
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
commented ×1mentioned ×1subscribed ×1

Error Message

src/auto-reply/reply/commands-subagents.ts:125:40 - error TS2551: Property 'list src/auto-reply/reply/commands-subagents/shared.ts:375:42 - error TS2304: Cannot src/secrets/runtime-web-tools.ts:413:34 - error TS2339: Property 'apiKey' does n src/secrets/runtime-web-tools.ts:418:29 - error TS2339: Property 'apiKey' does n

RAW_BUFFERClick to expand / collapse

https://github.com/openclaw/openclaw/blob/f7068a1349af466e68ebf6b4ceaaa2ac21e9b05b/src/auto-reply/reply/commands-subagents/action-agents.ts

src/auto-reply/reply/commands-subagents.ts:125:40 - error TS2551: Property 'list ControlledSubagentRuns' does not exist on type 'typeof import("C:/ai-python/open claw/src/auto-reply/reply/commands-subagents-control.runtime", { with: { "resolu tion-mode": "import" } })'. Did you mean 'steerControlledSubagentRun'?

125 runs: (await loadControlRuntime()).listControlledSubagentRuns(requesterK ey), ~~~~~~~~~~~~~~~~~~~~~~~~~~

src/auto-reply/reply/commands-subagents/shared.ts:375:42 - error TS2304: Cannot find name 'ChatMessage'.

375 export function formatLogLines(messages: ChatMessage[]) { ~~~~~~~~~~~

src/secrets/runtime-web-tools.ts:413:34 - error TS2339: Property 'apiKey' does n ot exist on type '{ enabled?: boolean | undefined; model?: string | undefined; i nlineCitations?: boolean | undefined; maxTurns?: number | undefined; timeoutSeco nds?: number | undefined; cacheTtlMinutes?: number | undefined; }'.

413 value: legacyXSearchSource.apiKey, ~~~~~~

src/secrets/runtime-web-tools.ts:418:29 - error TS2339: Property 'apiKey' does n ot exist on type '{ enabled?: boolean | undefined; model?: string | undefined; i nlineCitations?: boolean | undefined; maxTurns?: number | undefined; timeoutSeco nds?: number | undefined; cacheTtlMinutes?: number | undefined; }'.

418 legacyXSearchResolved.apiKey = resolution.value; ~~~~~~

Found 4 errors in 3 files.

Errors Files 1 src/auto-reply/reply/commands-subagents.ts:125 1 src/auto-reply/reply/commands-subagents/shared.ts:375 2 src/secrets/runtime-web-tools.ts:413  ELIFECYCLE  Command failed with exit code 1.  ELIFECYCLE  Command failed with exit code 1.

extent analysis

TL;DR

  • Review and update type definitions for loadControlRuntime, ChatMessage, and legacyXSearchSource to ensure they match the actual properties and methods available.

Guidance

  • Verify the type definitions for loadControlRuntime to ensure it includes the listControlledSubagentRuns method.
  • Check if ChatMessage is properly imported or defined in the scope of shared.ts.
  • Update the type definition for legacyXSearchSource to include the apiKey property, or ensure that the apiKey property is correctly accessed.
  • Review the errors and warnings to identify any other potential type mismatches or undefined properties.

Example

// Example of updating type definition for legacyXSearchSource
interface LegacyXSearchSource {
  enabled?: boolean;
  model?: string;
  inlineCitations?: boolean;
  maxTurns?: number;
  timeoutSeconds?: number;
  cacheTtlMinutes?: number;
  apiKey?: string; // Add apiKey property to the type definition
}

Notes

  • The provided errors suggest type mismatches or undefined properties, which can be resolved by reviewing and updating the relevant type definitions.
  • Ensure that all dependencies and imports are correctly configured and up-to-date.

Recommendation

  • Apply workaround: Update type definitions to match the actual properties and methods available, as this will likely resolve the errors and allow the code to compile successfully.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix await loadControlRuntime() issues in multifiles. [1 comments, 1 participants]