Repository navigation
test: drop the block owner that Rex leaves out for a session with no client - #40
Merged
Merged
Conversation
…client test/e2e.sh checks that real rex output has every key of the fake rex's recorded output. Rex 0.1.0-preview.25 leaves owner out of a block in session.list_blocks and block inspect when no client is attached to the session, which is how e2e.sh makes its session, so step 5 failed. rexdiff never reads a block's owner. The owner of a status record is still there, so event.json and status.json keep theirs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Thanks! |
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.
Problem
test/e2e.shstep 5 checks that real rex output has every key of the fake rex's recorded output intest/testdata/rex/. Against Rex 0.1.0-preview.25 it fails:Rex leaves
ownerout of a block insession.list_blocksandblock inspectwhen no client is attached to the session. e2e.sh makes its session withrex new, so it has none.Fix
Remove the block-level
ownerfromblock.jsonandinspect.json. rexdiff never reads a block's owner. A status record still carriesowner, soevent.jsonandstatus.jsonkeep theirs.Testing
go test -count=1 ./...passes.REXDIFF_REX=$(which rex) test/e2e.shon this branch gets past step 5 and stops at step 6 ("finds the agent"). That failure is theREX_SESSIONchange that fix(rex): find the session from REX_BLOCK when REX_SESSION is unset #39 fixes.🤖 Generated with Claude Code