Skip to content
ƒtsforgev0.52.0
19

Write diagnostics

1 min read

The session gate runs when tsforge decides a task is finished. That can take a while on a big repo.

Write diagnostics are faster feedback: after every successful edit or create, tsforge typechecks just that file and appends any errors to the tool result. The model can fix mistakes before the next full gate run.

Always on.

✓ edited src/foo.ts
⚠ write-check: 1 type + 0 lint issue(s) in foo.ts:
L12: Type 'string' is not assignable to type 'number'. (TS2322)

Up to 200 issues are surfaced per write (a runaway backstop); beyond that they are summarized as …and N more.

Write diagnostics do not replace the gate. They shorten the feedback loop.

How the gate is built · TypeScript language server · When the gate fails