Skip to content

fix(server): stamp Discord origin on worktree bootstrap messages - #488

Merged
patroza merged 2 commits into
fork/devfrom
fix/discord-bootstrap-source
Sep 25, 2026
Merged

patroza merged 2 commits into
fork/devfrom
fix/discord-bootstrap-source

Conversation

@patroza

@patroza patroza commented Sep 25, 2026

Copy link
Copy Markdown
Owner

#487 re-resolved identity-map snowflakes, but new Discord threads still had empty origin.

Worktree create persists the first user message via `thread.message.user.append` and then skips `message-sent` on turn.start. The append path dropped `SourceRef`. Live evidence: `t3-discord/efea60fb` (Announce Shared Ladehilfe Once) has `origin_source_json = null` and one user message with empty `source_json`, while a later follow-up on another Discord thread did get Enrico.

  • Copy the stamped turn.start source onto the bootstrap append.
  • Recover existing rows from the Discord overlay (`req: snowflake@handle`) on snapshot/refresh.

After deploy, reload: Enrico's working Discord threads should show his chip and leave Mine.

Worktree create persists the first user message via
thread.message.user.append and then skips message-sent on turn.start.
The append path dropped SourceRef, so Discord threads had empty origin
until a later follow-up. Copy the stamped source onto the bootstrap
message, and recover existing threads from the Discord overlay
(req: snowflake@handle) on snapshot/refresh.
@patroza
patroza marked this pull request as ready for review September 25, 2026 09:49
CI failed twice on this file: git:false saw a leftover .git, then
git init between turns could not parse HEAD. Isolate it like the
other worker-poisoned server tests.
@patroza
patroza merged commit 25ad70b into fork/dev Sep 25, 2026
6 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.

1 participant