Repository navigation
SolidCraft plugin: read entries show their answers; one request per action - #406
Merged
Merged
Conversation
…ction SolidCraft's entry dialog shows a result only for read entries; an edit entry just closes. status, check and live had to be edit entries (document.metadata is edit-classified), so their answers never appeared. They are read entries again over document.inspect (read-classified, metadata + unsaved flag); check and live say when the design has unsaved changes. The BOM and link checks need edit-classified commands and moved to check-assembly. Request files are request-<key>.<action>.json: asking twice replaces the first, and live shows requests the desktop app has not taken yet (desktop/src/scbridge.rs follows the name). On SolidCraft 0.45.0 (solidcraft-cli plugin test --require-cases): 16 cases pass. A guard test pins that read entries call only read commands. 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.
Why: SolidCraft's entry dialog shows the result only for read entries (
crates/ui-egui/src/plugin_menu.rs,poll_dialog); an edit entry closes with "done".status,checkandlivewere edit entries becausedocument.metadatais edit-classified – so in the GUI their answers were never visible.Changes
status,check,live→ read entries overdocument.inspect(read-classified; metadata as saved +dirty). Guard test: read entries call only read commands.checkandlivesay when the design has unsaved changes (a check-in takes the saved file). (pathis empty inside a plugin run – it works on a copy – so no "never saved" check.)check-assembly(Check assembly for TeamCraft):assembly.bom/component.linksare edit-classified; findings reach CLI, MCP and the assistant.request-<key>.<action>.json, one per revision and action – asking twice replaces the first;livelists requests the desktop app has not taken yet.desktop/src/scbridge.rsfollows the name (tests updated).Tested on SolidCraft 0.45.0 (flatpak):
solidcraft-cli plugin test --require-cases– 16/16 (new:check-assembly-part,live-pending-request);plugin checkclean. Desktop Rust not built locally.Docs: research page (finding + naming), plugin README,
desktop/README.md,CHANGELOG.md.🤖 Generated with Claude Code