chore(ui): open UI on --port=0 by default for coding agents#38981
Closed
Skn0tt wants to merge 7 commits intomicrosoft:mainfrom
Closed
chore(ui): open UI on --port=0 by default for coding agents#38981Skn0tt wants to merge 7 commits intomicrosoft:mainfrom
Skn0tt wants to merge 7 commits intomicrosoft:mainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
4616fc1 to
c4681dd
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| } | ||
|
|
||
| export function isCodingAgent(): boolean { | ||
| return !!process.env.CLAUDECODE; |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
dgozman
reviewed
Jan 30, 2026
| } | ||
|
|
||
| // https://github.com/firebase/firebase-tools/blob/fbaa1af6fd7a6b1bdb8c21ace7d3ec4f0959c989/src/env.ts#L16C1-L25C2 | ||
| export function isCodingAgent() { |
Member
Author
There was a problem hiding this comment.
Neither Copilot CLI nor Copilot in VS Code expose any identifying markers currently, sadly :/
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Contributor
Test results for "tests 1"4 flaky34231 passed, 756 skipped Merge workflow run. |
Contributor
Test results for "MCP"3 failed 4685 passed, 135 skipped Merge workflow run. |
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.
Coding agents like opening ports with
playwright-cli, so let's give them--port=0by default. Also fixes a bug whereshow-trace --port=0printedListening on https://undefined:1234, and removes an unused fixture from our test suite. See #38936.