Repository navigation
feat(history): run an entry from the panel, and stop recording phantom failures - #599
Merged
Merged
Conversation
This was referenced Sep 9, 2026
…m failures Two gaps in the same panel. FR-9.1.4 asked for "click to load; option to execute immediately" and only the first half was built. Right-clicking an entry now offers Insert into editor, Run now and Delete (#325). Run now goes to the connection the entry came from, not whichever one the sidebar has selected — rerunning yesterday's staging query against production because the selection moved on is the mistake worth designing out. Entries record the connection's name rather than its id, because an id is a per-session UUID and stops resolving the moment the app restarts, which is exactly when someone reaches for an old entry. The item is disabled, with the reason in its tooltip, when that connection is closed or when a credential was redacted out of the statement — a redacted entry is missing the password it needs and would fail in a way nobody could act on. Separately, a failed query with no live connection recorded an entry attributed to "Unknown". Fifty of those are fifty rows a user cannot act on or trace back to anything (#328). Without a connection the statement never reached a server, so there is no query to remember and nothing is written. The success path still records, deliberately, even unattributed: the statement ran, and dropping a real event because the frontend's connection list is out of step with the backend's would lose more than it saves. That state is a bug in its own right, so it now warns rather than passing silently as an "Unknown" row. The resultStore tests defaulted to an empty activeConnections list, which modelled a state the app should not be in. The default is now a connection that exists, and the empty case is tested explicitly for both outcomes. Closes #325 Closes #328 Co-Authored-By: Claude Opus 5 <[email protected]>
EVWorth
force-pushed
the
feat/history-rerun-and-attribution
branch
from
September 10, 2026 00:04
6583f44 to
83cafc9
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.
Closes #325, closes #328.
Run now (#325)
FR-9.1.4 asked for "click to load; option to execute immediately" and only the first half was built. Right-click now offers Insert into editor, Run now and Delete.
Run now goes to the connection the entry came from, not whichever the sidebar has selected — rerunning yesterday's staging query against production because the selection moved on is the mistake worth designing out.
Entries resolve by connection name, not id: an id is a per-session UUID and stops resolving the moment the app restarts, which is exactly when someone reaches for an old entry.
The item is disabled, with the reason in its tooltip, when that connection is closed or when a credential was redacted out of the statement (#587) — a redacted entry is missing the password it needs and would fail in a way nobody could act on.
"Unknown" entries (#328)
A failed query with no live connection recorded an entry attributed to
"Unknown". Fifty of those are fifty rows a user can't act on or trace back to anything. Without a connection the statement never reached a server, so there's no query to remember and nothing is written.The success path still records, deliberately. The issue proposed skipping both, but a statement that ran and succeeded is a real event, and dropping it because the frontend's connection list is out of step with the backend's would lose more than it saves. That state is a bug in its own right, so it now warns rather than passing silently as an "Unknown" row.
A test-realism note
resultStore.test.tsdefaulted to an emptyactiveConnections, modelling a state the app shouldn't be in — which is why four existing tests failed the moment "no connection" became meaningful. The default is now a connection that exists, and the empty case is tested explicitly for both outcomes.Verification
3 new store tests, 6 new panel tests. Full suite 1873 passing, 0 lint errors.