Skip to content

Make Gmail thread replies first-class - #123

Open
hargup wants to merge 5 commits into
codeflash-ai:mainfrom
hargup:agent/gmail-thread-replies
Open

Make Gmail thread replies first-class#123
hargup wants to merge 5 commits into
codeflash-ai:mainfrom
hargup:agent/gmail-thread-replies

Conversation

@hargup

@hargup hargup commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Gmail thread view becomes the default projection; thread replies are now first-class children with stable, namespaced remote IDs (gmail-thread:<mailbox>:<thread-id> / thread-child message IDs).
  • Reply drafts can be created directly from a hydrated thread (loc create gmail-reply), carrying the Gmail thread ID and RFC reply headers.
  • Thread directory and message/reply file names drop the leading date and switch to <title_slug>_<id> / <title_slug>_<id>.md (was <date>-<title_slug>-<id>), trading chronological sort order for stable, readable names.
  • Merged current main in to pick up the cloud sandbox data plane work and resolve one conflict in crates/localityd/src/push.rs (kept both branches' additions: main's new local_projection_items_for_plan and this branch's rename of block_ambiguous_gmail_send_replay to retryable_gmail_draft_create_push_id).

Test plan

  • cargo build --workspace --tests
  • cargo test -p locality-gmail (90 passed)
  • cargo test -p localityd -p loc-cli -p locality-core (all passed, including source_guidance_distinguishes_writable_and_read_only_sources, which was failing pre-merge due to this branch's stale templates/mount/AGENTS.md)
  • docs/gmail-connector.md and docs/cli.md updated with the new naming examples

🤖 Generated with Claude Code

@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

@hargup is attempting to deploy a commit to the sarthak-6132's projects Team on Vercel.

A member of the Team first needs to authorize it.

hargup added 5 commits July 28, 2026 11:25
Thread directories and message/reply files now use <title_slug>_<id>
instead of <date>-<title_slug>-<id>, dropping chronological sort order
in favor of stable, readable names.
@hargup
hargup force-pushed the agent/gmail-thread-replies branch from dded2a4 to 9107a5c Compare July 28, 2026 18:30
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