Skip to content

test: drop the block owner that Rex leaves out for a session with no client - #40

Merged
rednafi merged 1 commit into
rednafi:masterfrom
jordanbyron:fix/e2e-owner-shape
Dec 2, 2026
Merged

rednafi merged 1 commit into
rednafi:masterfrom
jordanbyron:fix/e2e-owner-shape

Conversation

@jordanbyron

Copy link
Copy Markdown
Contributor

Problem

test/e2e.sh step 5 checks that real rex output has every key of the fake rex's recorded output in test/testdata/rex/. Against Rex 0.1.0-preview.25 it fails:

FAIL at step 5, rex prints JSON in the shapes that the fake rex records: rex output lacks the keys [["owner"]] of block.json

Rex leaves owner out of a block in session.list_blocks and block inspect when no client is attached to the session. e2e.sh makes its session with rex new, so it has none.

Fix

Remove the block-level owner from block.json and inspect.json. rexdiff never reads a block's owner. A status record still carries owner, so event.json and status.json keep theirs.

Testing

🤖 Generated with Claude Code

…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>
@rednafi

rednafi commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Thanks!

@rednafi
rednafi merged commit ee48bdf into rednafi:master Dec 2, 2026
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.

2 participants