Repository navigation
feat(ui): Save Config Only shows the TI code that runs the saved config - #92
Merged
nicolasbisurgi merged 1 commit intoSep 30, 2026
Conversation
The pop-up names the file it saved and gives an ExecuteCommand snippet for this install: the executable itself when running as the bundle, else this Python with -m optimuspy, with --config only when the UI was started with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
On the Optimize page, Save Config Only now opens a "Config saved" pop-up in place of the toast. It shows:
ExecuteCommanddoesn't pass OptimusPy's exit code back to TI.How the command is built (
ui.run_command/ui.ti_snippet)-m optimuspy.--configis added only when the UI was started with--config. Otherwise the executable finds the sameconfig.inifrom its install folder: the Settings link orconfig/config.ini.POST /api/configalso returnscommand,ti_snippetandlog_path, next to thepathandfilenameit already returned.Scope: Save & Start is unchanged. Optimize DB is left for #91, because that page doesn't save an instructions file yet.
Docs:
docs/ui/optimize-page.mdhas a new section, "Running a saved config from a TI process". It notes that the password has to be stored inconfig.ini.Tests: three new tests in
tests/test_ui_server.pycover the bundle command,--configonly when the UI was started with it, and quote doubling. The full suite passes (476) and ruff is clean. The pop-up was checked by hand against tm1srv01.🤖 Generated with Claude Code