Repository navigation
refactor(threads): replace manual enum dispatches with enum_dispatch - #4639
Merged
Merged
Conversation
Contributor
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryReplaces manual forwarding with
No actionable issues found. Builds and tests were not run. Reviews (1) Β· Last reviewed commit: "Replace manual enum dispatches with `enu..." Β· Reviewed by Greptile |
Member
Author
|
/merge |
Collaborator
|
Landed as 7886d59. GitHub shows this merged once it reaches main. |
#4639) Replaces 13 match expressions that simply forwarded to each harness type with auto-generated dispatch impls from `enum_dispatch`, which harnesstools was already using, but only partially. Given the speed at which harnesses are being added, it's worth making that process as easy as possibleβinstead of updating a dozen-plus match expressions, you only have to implement a few traits. New extension traits are introduced in some cases, as `enum_dispatch` works at the trait level rather than the method level.
atuin-bot
force-pushed
the
taylordotfish/harnesstools-dispatch
branch
from
November 3, 2026 05:58
a45d34e to
7886d59
Compare
2 tasks done
This was referenced Nov 3, 2026
atuin-bot
pushed a commit
that referenced
this pull request
Nov 3, 2026
### Bug Fixes - *(daemon)* Include pre-session history in session-preload search ([#4536](#4536)) - *(deps)* Bump pulldown-cmark to 0.13.6 for RUSTSEC-2026-0433 ([#4631](#4631)) ### Features - *(api)* Delete a thread with its descendants, and refuse threads under a deleted one - *(client)* Load ai-session records by id - *(daemon)* Upload captured threads to octavo - *(devenv)* A dev shell with CI's toolchain and a sandboxed Atuin ([#4616](#4616)) - *(setup)* New onboarding that asks what to capture and how to search it ([#4637](#4637)) - *(threads)* Add Grok Build session capture, resume, and sync ([#4583](#4583)) - *(threads)* Capture Amp threads through a generic atuin threads push, and import them ([#4635](#4635)) - *(web)* Derive thread state and transcripts, and fake thread rpcs ### Refactor - *(threads)* Replace manual enum dispatches with `enum_dispatch` ([#4639](#4639)) ### Testing - Keep two tests from reading the real environment ([#4617](#4617))
atuin-bot
pushed a commit
that referenced
this pull request
Nov 4, 2026
### Bug Fixes - *(daemon)* Include pre-session history in session-preload search ([#4536](#4536)) - *(deps)* Bump pulldown-cmark to 0.13.6 for RUSTSEC-2026-0433 ([#4631](#4631)) - *(mcp)* Show the input schema on bad arguments, and accept query and a string as search terms ([#4640](#4640)) - *(scripts)* Run scripts with process's original umask ([#4651](#4651)) - *(threads)* Open written pi and omp sessions on one root, and on a model omp can use ([#4649](#4649)) - *(threads)* Key a Grok tool result by its call, not its output ([#4652](#4652)) ### Features - *(ai)* Remove TERMINAL.md user context ([#4646](#4646)) - *(api)* Delete a thread with its descendants, and refuse threads under a deleted one - *(client)* Load ai-session records by id - *(daemon)* Upload captured threads to octavo - *(devenv)* A dev shell with CI's toolchain and a sandboxed Atuin ([#4616](#4616)) - *(setup)* New onboarding that asks what to capture and how to search it ([#4637](#4637)) - *(setup)* Ask what to import on a screen of its own, with checkboxes and a button to continue ([#4650](#4650)) - *(threads)* Add Grok Build session capture, resume, and sync ([#4583](#4583)) - *(threads)* Capture Amp threads through a generic atuin threads push, and import them ([#4635](#4635)) - *(threads)* Kiro CLI harness ([#4611](#4611)) - *(threads)* Capture Kiro subagents as child sessions ([#4612](#4612)) - *(threads)* Write, fork, continue into and sync Kiro sessions ([#4614](#4614)) - *(threads)* Carry Kiro's write, edit and search tools, and fix its read offset ([#4633](#4633)) - *(web)* Derive thread state and transcripts, and fake thread rpcs ### Miscellaneous Tasks - Remove vestigial mentions of TERMINAL.md ([#4648](#4648)) ### Refactor - *(threads)* Replace manual enum dispatches with `enum_dispatch` ([#4639](#4639)) ### Testing - Keep two tests from reading the real environment ([#4617](#4617))
eleboucher
pushed a commit
to eleboucher/homelab
that referenced
this pull request
Nov 4, 2026
β¦) (#2542) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/atuinsh/atuin](https://github.com/atuinsh/atuin) | patch | `18.24.4` β `18.24.5` | --- ### Release Notes <details> <summary>atuinsh/atuin (ghcr.io/atuinsh/atuin)</summary> ### [`v18.24.5`](https://github.com/atuinsh/atuin/blob/HEAD/CHANGELOG.md#18245) [Compare Source](atuinsh/atuin@v18.24.4...v18.24.5) ##### Bug Fixes - *(daemon)* Include pre-session history in session-preload search ([#​4536](atuinsh/atuin#4536)) - *(deps)* Bump pulldown-cmark to 0.13.6 for RUSTSEC-2026-0433 ([#​4631](atuinsh/atuin#4631)) - *(mcp)* Show the input schema on bad arguments, and accept query and a string as search terms ([#​4640](atuinsh/atuin#4640)) - *(scripts)* Run scripts with process's original umask ([#​4651](atuinsh/atuin#4651)) - *(threads)* Open written pi and omp sessions on one root, and on a model omp can use ([#​4649](atuinsh/atuin#4649)) - *(threads)* Key a Grok tool result by its call, not its output ([#​4652](atuinsh/atuin#4652)) ##### Features - *(ai)* Remove TERMINAL.md user context ([#​4646](atuinsh/atuin#4646)) - *(api)* Delete a thread with its descendants, and refuse threads under a deleted one - *(client)* Load ai-session records by id - *(daemon)* Upload captured threads to octavo - *(devenv)* A dev shell with CI's toolchain and a sandboxed Atuin ([#​4616](atuinsh/atuin#4616)) - *(setup)* New onboarding that asks what to capture and how to search it ([#​4637](atuinsh/atuin#4637)) - *(setup)* Ask what to import on a screen of its own, with checkboxes and a button to continue ([#​4650](atuinsh/atuin#4650)) - *(threads)* Add Grok Build session capture, resume, and sync ([#​4583](atuinsh/atuin#4583)) - *(threads)* Capture Amp threads through a generic atuin threads push, and import them ([#​4635](atuinsh/atuin#4635)) - *(threads)* Kiro CLI harness ([#​4611](atuinsh/atuin#4611)) - *(threads)* Capture Kiro subagents as child sessions ([#​4612](atuinsh/atuin#4612)) - *(threads)* Write, fork, continue into and sync Kiro sessions ([#​4614](atuinsh/atuin#4614)) - *(threads)* Carry Kiro's write, edit and search tools, and fix its read offset ([#​4633](atuinsh/atuin#4633)) - *(web)* Derive thread state and transcripts, and fake thread rpcs ##### Miscellaneous Tasks - Remove vestigial mentions of TERMINAL.md ([#​4648](atuinsh/atuin#4648)) ##### Refactor - *(threads)* Replace manual enum dispatches with `enum_dispatch` ([#​4639](atuinsh/atuin#4639)) ##### Testing - Keep two tests from reading the real environment ([#​4617](atuinsh/atuin#4617)) </details> --- ### Configuration π **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) π¦ **Automerge**: Disabled by config. Please merge this manually once you are satisfied. β» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. π **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xOTkuMiIsInVwZGF0ZWRJblZlciI6IjQ0LjE5OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Reviewed-on: https://git.erwanleboucher.dev/eleboucher/homelab/pulls/2542
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces 13 match expressions that simply forwarded to each harness type with auto-generated dispatch impls from
enum_dispatch, which harnesstools was already using, but only partially.Given the speed at which harnesses are being added, it's worth making that process as easy as possibleβinstead of updating a dozen-plus match expressions, you only have to implement a few traits.
New extension traits are introduced in some cases, as
enum_dispatchworks at the trait level rather than the method level.