fix(harness): wire --state-dir for the Antigravity SDK harness on substrate#322
Merged
Merged
Conversation
joycel-github
force-pushed
the
fix-antigravity-substrate-savedir
branch
3 times, most recently
from
July 16, 2026 21:05
f19ba2f to
0497591
Compare
…strate runAntigravityHarness (the `ax harness antigravity` path used by the substrate ActorTemplate) forked the Python sidecar with only --host/--port. The sidecar then fell back to its own default state dir, so on a substrate actor per-conversation save_dir landed on a path AX does not control, which breaks SDK-native resume across actor Run/Restore and snapshotting. Derive the trajectory dir via antigravity.DefaultStateDir() and pass it as --state-dir, mirroring the local path in antigravity.New and the interactions harness in runAntigravityInteractionsHarness (both own the path internally rather than taking it from ax.yaml/ActorTemplate). Fixes #321
joycel-github
force-pushed
the
fix-antigravity-substrate-savedir
branch
from
July 16, 2026 21:10
0497591 to
69e6f70
Compare
joycel-github
marked this pull request as ready for review
July 16, 2026 21:14
wjjclaud
approved these changes
Jul 16, 2026
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.
Summary
antigravity.DefaultStateDir()and pass it to the sidecar as--state-dir, mirroring the local path (antigravity.New) and the interactions harnessTesting
go build,go vet,go test ./...pass.antigravity.DefaultStateDir(), which is already covered byTestDefaultStateDirininternal/harness/antigravity/antigravity_test.go. This change only wires that existing, tested value into the sidecar args.Fixes #321