Repository navigation
Conversation
Use exact equality for both supported table names, preserving the existing singular-to-plural error fallback and container metadata. Regressions cover longer prefix rows, literal wildcard characters, missing exact IDs, child metadata, and both fallback error paths. Prior-Art: MoonCaves/rawclaw internal/source/hermes/hermes.go L86-L90 (MIT) @e0420b85a30f2b4f562d72e531bcab64f23b6aa9 -> internal/source/opencode/opencode.go Prior-Art: MoonCaves/rawclaw internal/source/source.go L60-L61 (MIT) @e0420b85a30f2b4f562d72e531bcab64f23b6aa9 -> internal/source/opencode/opencode_test.go Prior-Art: MoonCaves/rawclaw internal/source/opencode/opencode_test.go L32-L136 (MIT) @e0420b85a30f2b4f562d72e531bcab64f23b6aa9 -> internal/source/opencode/opencode_test.go
This was referenced Nov 17, 2026
Owner
Author
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.
Registered OpenCode lookups can return a different session when its ID shares the requested prefix, even when the exact session exists.
Registration.Lookuppromises a full session ID. Use equality in both supported table queries, preserving the existing singular-to-plural error fallback and container metadata.Regression tests exercise the actual SQLite adapter for both schemas, literal wildcard characters, prefix-only misses, exact matches hidden behind earlier rows, child metadata, and both fallback paths. The new tests fail on unchanged production in an independent checkout.
Validation:
nohupon PATH for the existing detached-hook tests in this macOS execution environment; no hook or test code was changed.This PR remains draft until the revised tests, source citations and CI are verified.