Repository navigation
@tool(run_again=False): a tool whose form is not shown again after a completed run - #177
Merged
Merged
Conversation
…back after a completed run For a tool seldom run twice in a row (a long training, a one-off check), Fiji no longer shows its form again after a run that completed. The schema carries "run_again": false only when set; a missing key keeps today's behaviour, so older hosts and schemas are unaffected. napari and QuPath keep their form open and have nothing to do. Documented in MANIFEST, AUTHORING, HOST_FEATURES and PROTOCOL; `check` prints it; the example app uses it; a unit test covers it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G3qp9AoUT3RtgWWsiVVarX
This was referenced Dec 4, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G3qp9AoUT3RtgWWsiVVarX
3 tasks done
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.
Why
In Fiji, a tool's form comes back after each run started from the menu (LabConstrictor-Fiji issue #58). That's useful for quick tools, but after a long training (CAREamics N2V/CARE) a tester read the dialog reopening as something going wrong.
What
@tool("...", run_again=False): after a run that completes, a host that brings the form back (Fiji) doesn't show it again."run_again": falseonly when it is set. A missing key keeps today's behaviour, so existing apps and older hosts are unaffected. A non-bool value raisesTypeError.checkprints[form not shown again after a run]beside such a tool.test_introspection.test_run_again_false_is_in_the_schema_and_true_is_left_out.Checks run
black --check .,ruff check .,scripts/check_annotations.pyandvulturepass.mypyreports 4 errors, in files this PR doesn't touch; the same 4 appear without the change.Related
claude/laughing-wright-s6cht3.No feature id was added: a host doesn't need to require it, because a missing key is the default.
Generated by Claude Code