Skip to content

Commit 7a7064e

Browse files
authored
Update cli.py
1 parent 444de28 commit 7a7064e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎python_agent_harness/cli.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ def make_session(
4141
settings = config.load_llm_config(config_path)
4242
paths = config.load_paths_config(config_path)
4343
mcp_config = config.load_mcp_config(config_path)
44+
# Validate lsp.servers eagerly so a malformed override fails fast at
45+
# session start (with a clear message) instead of poisoning the first
46+
# LSP tool call mid-session. The LSP manager re-reads it lazily via
47+
# config_path; this call only surfaces config errors early.
48+
config.load_lsp_config(config_path)
4449
model = model or settings["model"]
4550
# resolve sub-agent overrides against the EFFECTIVE main settings
4651
# (so a CLI/caller model override is inherited too when the

0 commit comments

Comments
 (0)