Repository navigation
fix(history): Linux runs and MCP queries keep the database they ran in - #4775
Merged
Merged
Conversation
datlechin
added a commit
that referenced
this pull request
Nov 30, 2026
datlechin
force-pushed
the
fix/linux-history-run-database
branch
from
November 30, 2026 15:18
528d227 to
d44b936
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
USEmoves the tab, as Windows does.ran_statements.rs,workspace_handle.rs,ui/workspace/import.rs).held_sessiontook as the connection's own (core/crates/mcp/src/query_tools.rs). This is core code, so Windows' MCP runs gain it too.Test plan
run_history.rs: an editor entry carries the database it was given, and none for a file.ran_statements.rs: a save inanalyticsrecords it, and a save with no database records none.ui/editor/tests.rs: on a session inshop, a run recordsshop, and after pickinganalyticsthe next run recordsanalytics.core/crates/mcp/tests/mcp_server.rs: a query in thearchivedatabase the window holds recordsarchive.cargo fmtclean;-D warningsontablepro-mcpandtablepro, and ontablepro --no-default-features;verify.sh test tablepro-mcp(the server tests named) 9/9;verify.sh test tablepro --lib(history, saves, import, editor) 202/202;verify.sh l10npass.USEmoves the tab mid-run, since the fake session cannot run aUSE.