Skip to content

[Bug]: tsgo pre-commit hook fails on main — 4 pre-existing type errors block local commits #62014

@martingarramon

Description

@martingarramon

Bug type

Developer tooling issue

Summary

The pre-commit hook runs pnpm check, which includes tsgo. On current main (as of 2026-04-06), tsgo reports 4 type errors in files unrelated to any staged changes, blocking all local commits without --no-verify.

Steps to reproduce

  1. Clone the repo at current main
  2. Make any change (even a comment)
  3. git commit
  4. Observe tsgo failure

Affected files (none are contributor-touched)

src/gateway/client.ts(237,13): error TS2322
src/hooks/bundled/session-memory/transcript.ts(6,58): error TS2339
src/plugins/hooks.sync-only.test.ts(20,5): error TS2322
src/plugins/hooks.sync-only.test.ts(21,5): error TS2322

Expected behavior

Pre-commit hook passes on a clean checkout of main.

Actual behavior

tsgo fails with 4 type errors, forcing contributors to use --no-verify for all commits.

Impact

Low severity but high friction — every contributor hits this on every commit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions