Skip to content

SolidCraft plugin: read entries show their answers; one request per action - #406

Merged
rudalabs merged 1 commit into
mainfrom
feature/solidcraft-plugin-visible-results
Nov 22, 2026
Merged

rudalabs merged 1 commit into
mainfrom
feature/solidcraft-plugin-visible-results

Conversation

@Sebagrei

Copy link
Copy Markdown
Collaborator

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, check and live were edit entries because document.metadata is edit-classified – so in the GUI their answers were never visible.

Changes

  • status, check, live → read entries over document.inspect (read-classified; metadata as saved + dirty). Guard test: read entries call only read commands.
  • check and live say when the design has unsaved changes (a check-in takes the saved file). (path is empty inside a plugin run – it works on a copy – so no "never saved" check.)
  • BOM and linked-design checks → new edit entry check-assembly (Check assembly for TeamCraft): assembly.bom / component.links are edit-classified; findings reach CLI, MCP and the assistant.
  • Requests: request-<key>.<action>.json, one per revision and action – asking twice replaces the first; live lists requests the desktop app has not taken yet. desktop/src/scbridge.rs follows 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 check clean. Desktop Rust not built locally.

Docs: research page (finding + naming), plugin README, desktop/README.md, CHANGELOG.md.

🤖 Generated with Claude Code

…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>
@rudalabs
rudalabs merged commit 2d21fc9 into main Nov 22, 2026
23 checks passed
@rudalabs
rudalabs deleted the feature/solidcraft-plugin-visible-results branch November 22, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants