mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4562] [TUI] running_launches: an unreadable launch profile no longer reports the previous launch's config #5088
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5088
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4562
Author: @Nyarlathoteppppp
Created: 10/29/2026
Status: 🔄 Open
Base:
main← Head:fix/4395-running-launches-prof📝 Commits (1)
4bef7cblaunch: a running launch whose profile cannot be read reports no config instead of the previous launch's (#4395)📊 Changes
2 files changed (+30 additions, -0 deletions)
View changed files
📝
strata_cli/launch/cmd.py(+1 -0)📝
tests/terminal/test_dsv41_tui_items.py(+29 -0)📄 Description
Problem and result
running_launches()instrata_cli/launch/cmd.pybindsprofinside thetrythat loads a launch profile, but readsprof.get("source_config")after it. Whenprofiles.load()raises for a ready/starting launch:UnboundLocalError;source_config(and that config's key downstream).After the change the unreadable row reports
config: Nonewith the default port and host, like it already did foroverrides.Related discussion
Fixes #4395. Focused fix, no scope change.
Approach
Set
prof = {}in the sameexceptbranch that setsov = {}. One line; nothing else changes.Validation
Passed:
python -m pytest tests/terminal/test_dsv41_tui_items.py -k RunningLaunches: the two new tests (failed load on the only row; failed load after a good row) fail on46c152a(UnboundLocalError / inherited config) and pass with the fix.python -m pytest tests/terminal/test_launch.py tests/terminal/test_launch_dsv41.py tests/terminal/test_tui_stress.py tests/terminal/test_tui_stress_launch.py tests/terminal/test_dsv41_tui_items.py tests/terminal/test_dsv41_engine.py tests/terminal/test_launch_show_key_setup.py: 204 passed, 5 failed. The same 5 fail on46c152awithout this change (202 passed).46c152a.Failed:
none observed beyond the 5 pre-existing failures above.
Not run:
full test suite, Windows/Linux, a real launch with a damaged profile file.
Limits
none known.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.