Skip to content

Fix SetVar to succeed silently on a missing variable - #91

Merged
sidick merged 1 commit into
mainfrom
fix-setvar-missing-var-silent-success
Sep 19, 2026
Merged

sidick merged 1 commit into
mainfrom
fix-setvar-missing-var-silent-success

Conversation

@sidick

@sidick sidick commented Sep 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • SetVar(name, NULL, 0, flags) on a nonexistent variable now succeeds silently instead of returning ERROR_OBJECT_NOT_FOUND, both for local vars and ENV:-backed global vars.
  • DeleteVar (implemented on top of SetVar) inherits the fix.
  • Confirmed against a real Kickstart run via Copperline that the correct behavior is silent success, matching this module's own doc comment which already claimed that behavior but the code didn't implement it.

Test plan

  • cargo test -p volamos-core dosvar — 14 tests pass, including two new ones for the missing-var-delete case (local and global)

🤖 Generated with Claude Code

Real SetVar(name, NULL, 0, flags), and DeleteVar which is implemented
in terms of it, succeed silently when the variable doesn't exist
(verified against real Kickstart via Copperline). Both the local-vars
path and the ENV:-backed global path were wrongly returning
ERROR_OBJECT_NOT_FOUND instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@sidick
sidick merged commit 6ed0ea5 into main Sep 19, 2026
9 checks passed
@sidick
sidick deleted the fix-setvar-missing-var-silent-success branch September 19, 2026 20:55
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.

1 participant