Skip to content

fix(antigravity): preserve existing session titles on agy info updates - #1298

Open
zhanpoint wants to merge 1 commit into
baocode-dev:mainfrom
zhanpoint:fix/agy-preserve-custom-title
Open

zhanpoint wants to merge 1 commit into
baocode-dev:mainfrom
zhanpoint:fix/agy-preserve-custom-title

Conversation

@zhanpoint

Copy link
Copy Markdown

Fixes #1297

Summary

  • Guard session_info_update title handling in lib/kernel/antigravity/agy_transport_io.dart with _store.title == null, matching bao_agent's _nameSession invariant so stale agy titles pushed on resume never overwrite an existing custom or generated title (nor trigger Workspace._sync to echo them back as custom-title).
  • Add a regression test in test/kernel/agy_transport_test.dart covering initial auto-titling, user rename, and resuming with a stale session_info_update.

Verification

  • dart analyze lib/kernel/antigravity/agy_transport_io.dart test/kernel/agy_transport_test.dart (no issues)
  • flutter test test/kernel/agy_transport_test.dart (6/6 passed)

This branch has not been deployed

No deployments
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.

fix(antigravity): custom session title gets overwritten by stale agy title on resume

1 participant