hermes-agent/tests/agent/lsp
Repository files (latest commit first)
Filename Latest commit message Latest commit date
kshitijk4poor da2b64304b fix(lsp): no automatic trust for scheduled work; lock-free trust lookups
Re-review of the trust-anchor follow-up:

- Cron runs and Kanban workers no longer anchor trust. The cronjob tool
  lets the model pick a job's workdir, which becomes the run's session
  cwd, and kanban_create lets it pick a task workspace, which becomes the
  worker's launch dir and TERMINAL_CWD. Either one let an agent-cloned
  repo become trusted. Both now rely on lsp.trusted_workspaces only.
- A repository at or above $HOME never anchors, not only one at $HOME
  exactly.
- Operator roots are recorded only where a tool thread enters
  (enabled_for) and when the service is created. _trusted() is now a pure
  read. Before, it took _state_lock while two of its callers already held
  it, so a change in the roots could deadlock the LSP loop.
- Client lookups go through _live_key(). A multi-root client that
  started while its root was untrusted is still found and released after
  the root becomes trusted, instead of being orphaned.
- `hermes lsp status` stops listing roots that have since become trusted.
  The lint gate reads the cwd the same way the linter subprocess does.
- The path-list parser returns None for a malformed value, and each key
  logs its own warning. The _node_modules_trees docstring no longer
  mentions Vue.
2026-09-29 03:28:46 +05:30
..
__init__.py feat(lsp): semantic diagnostics from real language servers in write_file/patch (#24168) 2026-05-12 16:31:54 -07:00
_mock_lsp_server.py test(lsp): scope-drop the module-wide guard bypass and derive the oversize stderr line from _STREAM_LIMIT (#31417) 2026-09-24 22:25:06 +05:30
test_backend_gate.py test: prune low-value tests suite-wide (wave 1) — 46,820 → 28,106 test functions 2026-07-29 13:10:23 -07:00
test_broken_set.py fix(lsp): one stalled request no longer silences a workspace for good — retry window, cold-root warm-up budget, per-root exclusion 2026-09-20 18:54:24 -07:00
test_client_e2e.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-24 13:10:14 -04:00
test_compound_extensions.py feat(lsp): route .blade.php to laravel-lsp; plain .php stays on intelephense 2026-09-19 01:29:55 -07:00
test_custom_servers.py fix(lsp): deny by default in an untrusted workspace and skip the toolchain lint fallbacks there 2026-09-29 03:28:46 +05:30
test_delta_key.py test: prune low-value tests suite-wide (wave 1) — 46,820 → 28,106 test functions 2026-07-29 13:10:23 -07:00
test_diagnostics_field.py test: purge low-value tests, lane py01 (345 removed) 2026-09-23 03:15:26 -07:00
test_eventlog.py test: purge low-value tests, lane py01 (345 removed) 2026-09-23 03:15:26 -07:00
test_incremental_unicode.py fix(lsp): use UTF-16 units for document replacement ranges 2026-09-20 10:24:17 -07:00
test_install_and_lint_fixes.py fix(lsp): deny by default in an untrusted workspace and skip the toolchain lint fallbacks there 2026-09-29 03:28:46 +05:30
test_lifecycle.py test: prune low-value tests suite-wide (wave 1) — 46,820 → 28,106 test functions 2026-07-29 13:10:23 -07:00
test_manager_locking.py fix(lsp): trust the workspace the session was opened in, not only the process cwd 2026-09-29 03:28:46 +05:30
test_multi_root.py fix(lsp): share one pyright process across git worktrees via workspaceFolders 2026-09-03 02:32:15 -07:00
test_nested_root_current_diagnostics.py fix(lsp): look up nested single-root clients and version docs before didChange send 2026-09-12 05:09:11 -07:00
test_powershell_server.py test: prune low-value tests suite-wide (wave 1) — 46,820 → 28,106 test functions 2026-07-29 13:10:23 -07:00
test_protocol.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 07:02:44 -04:00
test_python_discovery.py fix(lsp): never run a cloned repository's own interpreter or TypeScript SDK in an untrusted workspace 2026-09-29 03:28:46 +05:30
test_reporter.py test(agent): replace source-scanning marker test with a renderer behaviour test 2026-09-26 23:49:25 +05:30
test_root_policy.py fix(lsp): trust the workspace the session was opened in, not only the process cwd 2026-09-29 03:28:46 +05:30
test_service.py test: purge low-value tests, lane py01 (345 removed) 2026-09-23 03:15:26 -07:00
test_shell_linter_lsp_skip.py fix(lsp): deny by default in an untrusted workspace and skip the toolchain lint fallbacks there 2026-09-29 03:28:46 +05:30
test_stale_diagnostics.py test: prune low-value tests suite-wide (wave 1) — 46,820 → 28,106 test functions 2026-07-29 13:10:23 -07:00
test_versionless_push_during_send.py fix(lsp): look up nested single-root clients and version docs before didChange send 2026-09-12 05:09:11 -07:00
test_vue_server.py fix(lsp): Vue reinstall hint routes through hermes lsp install; recipe test is a major-bound invariant 2026-09-19 01:29:20 -07:00
test_windows_binary_resolution.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-20 10:07:50 -04:00
test_workspace.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-19 13:45:07 -04:00
test_workspace_release.py fix(lsp): release language servers on every in-process workspace removal; pin the call sites 2026-09-19 01:29:03 -07:00
test_workspace_trust.py fix(lsp): no automatic trust for scheduled work; lock-free trust lookups 2026-09-29 03:28:46 +05:30