Repository navigation
fix(e2e): guard the remote session against a file only this machine has - #1723
Merged
Merged
Conversation
Since the serve worker expands @path itself, a teleported session inlines the README of its own clone, which carries the same text as the local one. The teleport test took that for the local file being read and has failed on main since. It now references a file that exists only in the local checkout, which the remote worker must leave as the raw token.
Contributor
|
🎉 This PR is included in version 0.246.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Summary
The
e2ejob has failed onmainsince #1717, and every PR opened after it inherits the failure.TestChatDaemonTeleportsTheSessionAndBringsItBacksendssay hello @README.mdin a session teleported to workspaceband asserts the README's text never shows, as its guard that a remote session does not read this machine's file.#1717 made the serve worker expand
@<path>itself. The worker onbnow inlines the README of its own clone, which carries the same text as the local one, so the guard fired on a file the remote session is entitled to read.Changes
local.md, a file written only into the local checkout. The remote worker cannot resolve it, so the token stays raw and the file's text must not show. That is the guard's original intent, and it can now tell the two machines apart.No product code changes. Worker-side expansion of a file the worker has is the behavior #1714 asked for.
Verification
mainlocally, thentask test:e2eequivalent with-racepasses:ok tests/e2e 166s.Downstream