Skip to content

fix(harness): wire --state-dir for the Antigravity SDK harness on substrate#322

Merged
joycel-github merged 1 commit into
mainfrom
fix-antigravity-substrate-savedir
Jul 16, 2026
Merged

fix(harness): wire --state-dir for the Antigravity SDK harness on substrate#322
joycel-github merged 1 commit into
mainfrom
fix-antigravity-substrate-savedir

Conversation

@joycel-github

@joycel-github joycel-github commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Derive the trajectory dir via antigravity.DefaultStateDir() and pass it to the sidecar as --state-dir, mirroring the local path (antigravity.New) and the interactions harness

Testing

  • go build, go vet, go test ./... pass.
  • No new unit test: the resolved path comes from antigravity.DefaultStateDir(), which is already covered by TestDefaultStateDir in internal/harness/antigravity/antigravity_test.go. This change only wires that existing, tested value into the sidecar args.

Fixes #321

@joycel-github
joycel-github force-pushed the fix-antigravity-substrate-savedir branch 3 times, most recently from f19ba2f to 0497591 Compare July 16, 2026 21:05
…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
joycel-github merged commit 5059678 into main Jul 16, 2026
9 checks passed
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.

Antigravity SDK harness on substrate relies on an implicit sidecar default for save_dir instead of passing --state-dir

2 participants