Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
a1b67e6
Studio: persistent stdio MCP sessions so server state survives across…
NilayYadav Jul 11, 2026
b873136
address review feedback
NilayYadav Jul 11, 2026
493d751
fix stdio session cleanup
NilayYadav Jul 11, 2026
0edede3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 11, 2026
5b063fa
address review: per-thread MCP scope, close-during-connect and abort …
NilayYadav Jul 11, 2026
eb04379
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 11, 2026
05588ee
address review: unblock no-limit calls on close, drain borrowers befo…
NilayYadav Jul 11, 2026
bc16dfd
don't retry sessions closed by config changes, re-verify server row b…
NilayYadav Jul 11, 2026
e1f417b
fail fast on connect errors and make the stdio key-lock wait cancellable
NilayYadav Jul 11, 2026
6a67672
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 11, 2026
a602374
quote MCP scope parts so IDs with colons can't collide
NilayYadav Jul 11, 2026
a29e973
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 11, 2026
8b2154c
serialize per-session stdio calls, span one timeout budget across con…
NilayYadav Jul 11, 2026
29e93ca
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 11, 2026
f242537
Harden persistent stdio MCP sessions: crash recovery, concurrency, sc…
danielhanchen Jul 12, 2026
466cf6d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 12, 2026
d745b79
Trim the stdio MCP session cache on release and skip close-generation…
danielhanchen Jul 13, 2026
38dbf78
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 13, 2026
53b4fe2
Keep the live stdio MCP session across a display-name rename
danielhanchen Jul 13, 2026
99674c6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 13, 2026
3a19549
Tighten comments in the stdio MCP session lifecycle
danielhanchen Jul 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions studio/backend/core/inference/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,7 @@ def generate_chat_completion_with_tools(
nudge_tool_calls: Optional[bool] = None,
tool_call_timeout: int = 300,
session_id: Optional[str] = None,
thread_id: Optional[str] = None,
rag_scope: Optional[dict] = None,
presence_penalty: float = 0.0,
):
Expand Down Expand Up @@ -885,6 +886,7 @@ def _single_turn(conv: list, *, active_tools: Optional[list[dict]] = None):
max_tool_iterations = max_tool_iterations,
tool_call_timeout = tool_call_timeout,
session_id = session_id,
thread_id = thread_id,
rag_scope = rag_scope,
)

Expand Down
2 changes: 2 additions & 0 deletions studio/backend/core/inference/llama_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -8961,6 +8961,7 @@ def generate_chat_completion_with_tools(
nudge_tool_calls: Optional[bool] = None,
tool_call_timeout: int = 300,
session_id: Optional[str] = None,
thread_id: Optional[str] = None,
rag_scope: Optional[dict] = None,
seed: Optional[int] = None,
disable_parallel_tool_use: bool = False,
Expand Down Expand Up @@ -9983,6 +9984,7 @@ def _tool_succeeded(tool_name: str) -> bool:
cancel_event = cancel_event,
timeout = _effective_timeout,
session_id = session_id,
thread_id = thread_id,
rag_scope = rag_scope,
disable_sandbox = bypass_permissions,
)
Expand Down
Loading
Loading