Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(coderd/x/chatd): ensure runner initializes from the db first - #26455

Merged
hugodutka merged 1 commit into
mainfrom
hugodutka/runner-bootstrap-fix
Jun 17, 2026
Merged

fix(coderd/x/chatd): ensure runner initializes from the db first#26455
hugodutka merged 1 commit into
mainfrom
hugodutka/runner-bootstrap-fix

Conversation

@hugodutka

Copy link
Copy Markdown
Contributor

Should close coder/internal#1589.

@hugodutka
hugodutka force-pushed the hugodutka/runner-bootstrap-fix branch from 9364662 to b0bd012 Compare June 17, 2026 11:19
Comment thread coderd/x/chatd/runner.go Outdated
@hugodutka
hugodutka force-pushed the hugodutka/runner-bootstrap-fix branch from b0bd012 to 28e45f5 Compare June 17, 2026 11:29
@hugodutka
hugodutka enabled auto-merge (squash) June 17, 2026 11:30
Comment thread coderd/x/chatd/runner.go
r.opts.Logger.Warn(ctx, "chatworker state update decode failed", slogError(err))
return
}
<-bootstrapReady

@mafredri mafredri Jun 17, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we select on r.ctx here as well (early exit)?

@hugodutka hugodutka Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not necessary since bootstrapReady is guaranteed to be closed when the outer function exits

@hugodutka
hugodutka merged commit b3e4a3a into main Jun 17, 2026
29 checks passed
@hugodutka
hugodutka deleted the hugodutka/runner-bootstrap-fix branch June 17, 2026 11:43
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flake: TestActiveServer_AnthropicProviderToolPreRequestGuard

3 participants