-
Notifications
You must be signed in to change notification settings - Fork 4
fix(shell): reload MCP and model sessions cleanly #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
8004650
test(auth): guard committed login-brand assets against source drift
elkaix 2e43871
fix(auth): fail soft when a browser-login brand asset is missing
elkaix f38122b
feat(approval): deliberate before destructive auto-approved actions
elkaix d999280
feat(ui): thinking-level cycle + frame-color helpers for Shift+Tab
elkaix eade223
fix(tui): avoid prompt resize artifacts
elkaix f2b51a4
feat(ui): continue thinking effort selector port
elkaix 97d036e
docs: spec for shimmer traveling-waves redesign
elkaix b8762e6
feat(ui): traveling-wave shimmer with center-out splash
elkaix 60d1feb
feat(ui): silver shimmer sheen over muted orange-yellow verb
elkaix c8aa983
fix(recap): summarize turn outcome instead of opening intent
elkaix 0148247
feat(thinking): support minimal reasoning effort across providers
elkaix 4e58fc2
feat(thinking): make thinking effort a first-class config and runtime…
elkaix 39289cc
feat(ui): cycle thinking effort with Shift+Tab and color the prompt b…
elkaix 243229b
feat(auto): auto-deliberate policy with blind advisor for AskUserQues…
elkaix 12f06fd
fix(ui): render reports as padded panels and preserve report-fence seams
elkaix bfa3433
fix(ui): keep status shimmer animating during quiet wire periods
elkaix de0191a
feat(shell): no-arg /logout selector and provider login status
elkaix c4d20b3
fix(agent): include base_prompt in run-agents fingerprint
elkaix e968a78
test(ui): align compaction-seam and recap spacing expectations
elkaix d25d401
docs(changelog): note thinking effort controls
elkaix 158ee96
test(ui): address report fence review feedback
elkaix c4a46b0
fix(shell): reload MCP and model sessions cleanly
elkaix 6498c15
Merge branch 'main' into fix/reload-mcp-model-context
elkaix 619254c
fix(shell): address reload review feedback
elkaix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| from __future__ import annotations | ||
|
|
||
| import json | ||
| from pathlib import Path | ||
|
|
||
| import pytest | ||
|
|
||
| from pythinker_code.cli import _load_mcp_configs_from_cli_inputs | ||
|
|
||
|
|
||
| def test_load_mcp_configs_rechecks_default_file_between_reloads( | ||
| monkeypatch: pytest.MonkeyPatch, tmp_path: Path | ||
| ) -> None: | ||
| """Reload must see MCP servers added after process startup.""" | ||
| default_mcp_file = tmp_path / "mcp" / "global.json" | ||
| monkeypatch.setattr( | ||
| "pythinker_code.cli.mcp.get_global_mcp_config_file", lambda: default_mcp_file | ||
| ) | ||
|
|
||
| assert not default_mcp_file.exists() | ||
| assert _load_mcp_configs_from_cli_inputs(None, None) == [] | ||
|
|
||
| default_mcp_file.parent.mkdir(parents=True, exist_ok=True) | ||
| expected = { | ||
| "mcpServers": {"context7": {"url": "https://mcp.example.test", "transport": "http"}} | ||
| } | ||
| default_mcp_file.write_text(json.dumps(expected), encoding="utf-8") | ||
|
|
||
| assert _load_mcp_configs_from_cli_inputs(None, None) == [expected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.