Skip to content

refactor: extract loopState struct to bundle runTurn parameters#2759

Merged
dgageot merged 1 commit into
docker:mainfrom
dgageot:runtime/loop-state
May 11, 2026
Merged

refactor: extract loopState struct to bundle runTurn parameters#2759
dgageot merged 1 commit into
docker:mainfrom
dgageot:runtime/loop-state

Conversation

@dgageot
Copy link
Copy Markdown
Member

@dgageot dgageot commented May 11, 2026

Bundle the 15 mutable per-RunStream variables into a single loopState struct. Only loop.go is modified. Pure refactor, no behaviour change.

@dgageot dgageot requested a review from a team as a code owner May 11, 2026 16:43
Copy link
Copy Markdown

@docker-agent docker-agent left a comment

Choose a reason for hiding this comment

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

Assessment: 🟢 APPROVE

The refactor correctly bundles 15 mutable per-RunStream variables into a loopState struct. All field initialisations match their original zero/non-zero values, the struct is created fresh per RunStream call (no cross-call state bleed), pointer semantics for overflowCompactions are preserved, and the three-way slices.Concat ordering in runTurn is unchanged. No behavioural regressions found.

@dgageot dgageot merged commit cb62c4a into docker:main May 11, 2026
7 of 8 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.

4 participants