Skip to content

fix(e2e): guard the remote session against a file only this machine has - #1723

Merged
edenreich merged 1 commit into
mainfrom
fix/e2e-daemon-file-reference
Nov 6, 2026
Merged

edenreich merged 1 commit into
mainfrom
fix/e2e-daemon-file-reference

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

The e2e job has failed on main since #1717, and every PR opened after it inherits the failure. TestChatDaemonTeleportsTheSessionAndBringsItBack sends say hello @README.md in a session teleported to workspace b and 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 on b now 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

  • The test now references 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.
  • The file is removed again before the session teleports back, since a changed checkout refuses the return.

No product code changes. Worker-side expansion of a file the worker has is the behavior #1714 asked for.

Verification

  • Reproduced the failure on main locally, then task test:e2e equivalent with -race passes: ok tests/e2e 166s.

Downstream

  • no docs ticket: test-only fix

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.
@edenreich
edenreich requested a review from a team as a code owner November 6, 2026 18:33
@github-project-automation github-project-automation Bot moved this to Todo in 2026 Nov 6, 2026
@edenreich
edenreich merged commit ba34c5a into main Nov 6, 2026
1 check passed
@edenreich
edenreich deleted the fix/e2e-daemon-file-reference branch November 6, 2026 18:34
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.246.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 7, 2026
@edenreich edenreich moved this from Todo to Done in 2026 Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant