openclaw - 💡(How to fix) Fix [CI] build-smoke/check regressions in compaction, model registry, and skills config [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

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#55529Fetched 2026-04-08 01:38:27
View on GitHub
Comments
1
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
closed ×1commented ×1locked ×1renamed ×1

main is currently failing shared CI due to unrelated type/build regressions in core agent code.

Error Message

src/agents/compaction.ts(242,11): error TS2345: Argument of type 'AbortSignal' is not assignable to parameter of type 'Record<string, string>'. src/agents/pi-extensions/compaction-safeguard.ts(617,44): error TS2339: Property 'getApiKey' does not exist on type 'ModelRegistry'. src/agents/skills/config.ts(53,42): error TS2339: Property 'source' does not exist on type 'Skill'.

Root Cause

main is currently failing shared CI due to unrelated type/build regressions in core agent code.

Code Example

src/agents/compaction.ts(242,11): error TS2345: Argument of type 'AbortSignal' is not assignable to parameter of type 'Record<string, string>'.
src/agents/pi-extensions/compaction-safeguard.ts(617,44): error TS2339: Property 'getApiKey' does not exist on type 'ModelRegistry'.
src/agents/skills/config.ts(53,42): error TS2339: Property 'source' does not exist on type 'Skill'.
RAW_BUFFERClick to expand / collapse

Summary

main is currently failing shared CI due to unrelated type/build regressions in core agent code.

Observed run

Failing jobs

  • build-smoke
  • build-artifacts
  • check
  • check-additional
  • checks-fast-contracts-protocol
  • checks-fast-extensions

Representative errors

src/agents/compaction.ts(242,11): error TS2345: Argument of type 'AbortSignal' is not assignable to parameter of type 'Record<string, string>'.
src/agents/pi-extensions/compaction-safeguard.ts(617,44): error TS2339: Property 'getApiKey' does not exist on type 'ModelRegistry'.
src/agents/skills/config.ts(53,42): error TS2339: Property 'source' does not exist on type 'Skill'.

Affected files

  • src/agents/compaction.ts
  • src/agents/pi-extensions/compaction-safeguard.ts
  • src/agents/skills/config.ts

Expected

Shared CI lanes on main should build and type-check cleanly.

extent analysis

Fix Plan

To resolve the type and build regressions, we need to address the errors in the affected files. Here are the steps:

  • Update the compaction.ts file to correctly assign the AbortSignal type.
  • Add the missing getApiKey property to the ModelRegistry type in compaction-safeguard.ts.
  • Add the missing source property to the Skill type in config.ts.

Example code changes:

// src/agents/compaction.ts
import { AbortSignal } from 'abort-controller';

// Update the function parameter type
function compactData(signal: AbortSignal) {
  // ...
}

// src/agents/pi-extensions/compaction-safeguard.ts
interface ModelRegistry {
  // Add the missing property
  getApiKey: () => string;
}

// src/agents/skills/config.ts
interface Skill {
  // Add the missing property
  source: string;
}

Verification

To verify the fix, re-run the failed jobs in the CI pipeline and check for any remaining errors. The build-smoke, build-artifacts, check, check-additional, checks-fast-contracts-protocol, and checks-fast-extensions jobs should all pass.

Extra Tips

  • Make sure to update the type definitions for any dependent modules or files.
  • Run npm run build and npm run check locally to catch any type errors before pushing changes to the CI pipeline.
  • Consider adding additional type checks or tests to prevent similar regressions in the future.

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 [CI] build-smoke/check regressions in compaction, model registry, and skills config [1 comments, 1 participants]