Repository navigation
test(agent): pin the file preview sheet - FilePreviewSheet (Closes #1543) - #1969
Merged
Merged
Conversation
Summary by t27-beesThis PR adds a contract test for Worth a look
Read: 1 files, +200 -0, the whole diff. Head |
β Tests passed β 3635/3705
|
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.
Closes #1543
What
The first suite for
apps/agent/entrypoints/app/agent-command/agent-conversation.file-preview-sheet.tsx(FilePreviewSheet, the only export), underbun testin the agent group.describeblock:agentConversationFilePreviewSheetTsxContract(appears nowhere else in the tree).useFilePreviewis replaced, answering a mutable preview state the test drives branch by branch). The agent-server URL hook answersbaseUrl: nullβ exactly what the real hook gives a test process, and what the downstream OpenClaw suites bake in. A portal-free sheet stand-in carries all 8 value exports of the kit.0 pass / 1 fail; restored β1 pass / 0 fail / 15 expect().git diff --name-onlylists only the new test file.Local gates
1 pass / 0 fail(15 expect());grep -c 'it('= 1; 1 + 0 blocked = 1.260 pass / 3 fail / 263 testsβ the 3 failures are the pre-existing port-helper noise, unchanged from baseline. (A first draft handing the OpenClaw suites a non-null baseUrl broke 3 of their tests locally β caught by the group run before the PR, fixed by answering the real test-env value.)No database, no container, no network.