fix: resolve two pre-existing TS errors blocking CI check job#31868
Closed
JoshuaLelon wants to merge 2 commits intoopenclaw:mainfrom
Closed
fix: resolve two pre-existing TS errors blocking CI check job#31868JoshuaLelon wants to merge 2 commits intoopenclaw:mainfrom
JoshuaLelon wants to merge 2 commits intoopenclaw:mainfrom
Conversation
6 tasks
Contributor
Greptile SummaryMoved
Confidence Score: 5/5
Last reviewed commit: 9c445ec |
Member
|
Thanks for jumping on CI failures. Closing this PR because the two pre-existing TypeScript issues this PR targeted are already resolved on main, so this branch is now stale/superseded. If you still see a current failing check on main, please open a fresh PR against that current failure. |
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.
Summary
maincause the CIcheckjob to fail for all open PRsmainextensions/zalouser/src/monitor.ts: movedconst chatId = message.threadIdabove thesenderIdguard that references it (TS2448: variable used before declaration)src/cli/program/config-guard.test.ts: aligned the local type annotation forensureConfigReadywith the actual function signature (runtime: RuntimeEnv,commandPath?: string[]) — wasruntime: unknown,commandPath: string[](TS2322)Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
fix(zalouser): harden inbound sender id handling)fix(cli): config guard test adjustments)User-visible / Behavior Changes
None
Security Impact (required)
Repro + Verification
Environment
Steps
pnpm tsgoon currentmainExpected
Actual
TS2448atextensions/zalouser/src/monitor.ts:141:57TS2322atsrc/cli/program/config-guard.test.ts:71:7Evidence
pnpm tsgoshows both errors onmain, neither after this fixpnpm test extensions/zalouser/(5/5 that run),pnpm test src/cli/program/config-guard.test.ts(8/8)Human Verification (required)
pnpm tsgoclean after fix; both test suites passchatIdvalue (message.threadId) doesn't depend on anything between old and new positions; config-guard test usesas nevercast at call site so the type change is safeCompatibility / Migration
Failure Recovery (if this breaks)
Risks and Mitigations
None