Files
hermes-agent/tools
Konstantin Khlopkov 570b3c1a6c fix(lsp): treat a deleted process cwd as no anchor so write diagnostics never fail a landed write
resolve_workspace_for_file evaluated os.getcwd() unguarded, so after a scratch
workspace is removed under a running worker, every write_file/patch reported
[Errno 2] from the LSP enrichment step even though the write landed and
hash-verified. The resolver now reads a removed cwd as "no cwd anchor" and falls
through to the file's own worktree; _maybe_lsp_diagnostics gates through the
guarded _lsp_will_handle helper like the rest of the lint tier, so a
workspace-resolution failure degrades to "no LSP for this write".

Fixes #115342

(cherry picked from commit 6277d2a036b75881ea529e3268832a3f6262b139)
2026-09-19 01:32:28 -07:00
..