Repository navigation
fix(ci): green the check + check-docs gates (tsgo, lint, docs) - #69
Conversation
Resolve every pre-existing failure in `pnpm check` (format && tsgo && lint) and `pnpm check:docs` (format:docs && lint:docs && check-links) so openclaw PRs stop needing --admin. tsgo (9 errors, 4 files): - chat.ts:417 — type contentBlocks as its real AssistantContentBlock[] union (text|image) instead of Record<string,unknown>[]; make the text-block predicate honest; isolate one commented boundary cast to the Pi AssistantMessage.content type (Pi's union has no image variant, but the transcript stores image blocks as-is). No `any`. - self-info-tool.e2e.test.ts — narrow content[0] before reading .text. - skills-bundled.test.ts — modern single-fn-type vi.fn signature. - login-qr.test.ts — type the WhatsApp socket mock as a partial at the mock boundary (commented). lint (oxlint): drop an unused import (bot-members.ts) + 3 redundant <Record<string,unknown>> type args (self-info-tool.ts). docs (markdownlint + link-check): bare URL + malformed emphasis (life-per-user-memory.md), a missing table cell + an unvalidatable out-of-docs link (INFRASTRUCTURE.md). Gate: pnpm check, pnpm check:docs, oxfmt --check all green; vitest for the touched areas passes (self-info-tool e2e 8, skills-bundled 14, login-qr 3, chat transcript/abort/send). Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
@codex review Greens the
Also confirm the test-mock fixes (skills-bundled Gate: pnpm check + pnpm check:docs + oxfmt --check all green; vitest touched areas pass. |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Record the per-user-profile Phase 3 deploy: PR #68 (app_profile context injection) + #69 (CI gate fix) merged; gateway image v2026.06.17.1 (sourceSha 50f6c2d) built and pinned to the life agent only on 2ndClaw; life workspace AGENTS.md gained the app_profile writable section + rules. Note the intentional life-ahead image drift on the US host. Co-authored-by: Liran Peretz <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]>
Green the
check+check-docsCI gates so openclaw PRs stop needing--admin. Follows #67 (which cleared the oxfmt cause and exposed the deeper failures underneath). Pure tooling/correctness — no runtime feature change.check(=format:check && tsgo && lint)tsgo — 9 errors across 4 files (enumerated against CI's real scope; the worktree symlink produces phantom
ui/*/ TS2742 errors CI never sees — reproduced clean with bind mounts):chat.ts:417(the real soundness gap):contentBlockswas typedRecord<string,unknown>[], erasing thatparams.contentis genuinelyAssistantContentBlock[](text | image). Fixed to its real union; thetype === "text"predicate now honestly narrows toAssistantTextContentBlock; and a single commented boundary cast toExtract<AppendMessageArg, {role:"assistant"}>["content"]covers the genuine gap that Pi'sAssistantMessage.contentunion has no image variant even though the transcript JSONL stores image blocks as-is. Noany.self-info-tool.e2e.test.ts— narrowcontent[0]before reading.text.skills-bundled.test.ts— modern single-fn-typevi.fnsignature.login-qr.test.ts— type the WhatsApp-socket mock as a partial at the mock boundary (commented).lint (oxlint): dropped an unused
loadConfigimport (bot-members.ts) + 3 redundant<Record<string,unknown>>type args (self-info-tool.ts).check-docs(=format:docs && lint:docs && check-links)Pre-existing doc debt unrelated to the type work, fixed to fully green the gate: a bare URL + malformed emphasis (
life-per-user-memory.md), and a missing table cell (MD056) + an unvalidatable out-of-docs link (INFRASTRUCTURE.md).Gate (matching CI)
pnpm check→ green (0 lint errors, tsgo exit 0).pnpm check:docs→ green.oxfmt --check→ clean.After this,
check/check-docsare green onmainand PRs no longer need--admin.🤖 Generated with Claude Code