Surface “Trocar de versão” prompt on canary/rc fatal errors#1479
Draft
marcuscastelo with Codex wants to merge 2 commits into
Draft
Surface “Trocar de versão” prompt on canary/rc fatal errors#1479marcuscastelo with Codex wants to merge 2 commits into
marcuscastelo with Codex wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Canary/rc builds now surface a clear “Trocar de versão” option on fatal or non-interactive errors, letting users reopen the same route on the stable URL with telemetry for show/switch/dismiss.
Example:
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
test.supabase.co/opt/hostedtoolcache/node/24.14.0/x64/bin/node /opt/hostedtoolcache/node/24.14.0/x64/bin/node --conditions node --conditions development /home/REDACTED/work/macroflows/macroflows/node_modules/.pnpm/tinypool@1.1.1/node_modules/tinypool/dist/entry/process.js git /usr/bin/tr get --local rgo/bin/git tr ace:�� m/alias/default git /tmp/.tmpEguFYM/getconf --local gpg.program t getconf(dns block)/opt/hostedtoolcache/node/24.14.0/x64/bin/node /opt/hostedtoolcache/node/24.14.0/x64/bin/node --conditions node --conditions development /home/REDACTED/work/macroflows/macroflows/node_modules/.pnpm/tinypool@1.1.1/node_modules/tinypool/dist/entry/process.js hash-object de/node/bin/node mon/components/twc node 0/x64/lib/node_modules/@openai/codex/vendor/x86_64-REDACTED-linux/home/REDACTED/work/macroflows/macroflows lsb_release de/n�� k/macroflows/macroflows 0/x64/lib/node_mhash-object /usr/bin/dirname blePrompt.test.t/bin/sh ss.js b_release dirname(dns block)/opt/hostedtoolcache/node/24.14.0/x64/bin/node /opt/hostedtoolcache/node/24.14.0/x64/bin/node --conditions node --conditions development /home/REDACTED/work/macroflows/macroflows/node_modules/.pnpm/tinypool@1.1.1/node_modules/tinypool/dist/entry/process.js /home/REDACTED/.nvm/test /bin/sh roflows hash-object /usr/bin/getopt /bin/sh -c o | grep "core id" | sort | uniq | wc -l /usr/bin/uniq roflows -o /home/REDACTED/.dotnet/tools/git uniq(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This section details on the original issue you should resolve
<issue_title>Show 'Switch to stable version' option on fatal/non-user-interactive errors in canary/rc builds</issue_title>
<issue_description># Feature Request Template
Title:
Show "Switch to stable version" option on fatal/non-user-interactive errors in canary/rc builds
Description:
When the app running a canary/rc (non-stable) build encounters a fatal, critical or otherwise non-user-interactive error (one that prevents normal app usage), present the user with an explicit option to switch to the stable release of the app. The UI affordance should make it obvious that the current session is using a canary/rc URL and that switching will re-open the same flow on the stable production URL (button labelled "Trocar de versão" for the Portuguese UI).
Motivation:
Proposed Solution:
Error classification
UI behavior
Observability & telemetry
Implementation details
src/modules/observability/*andsrc/instrument.server.ts.src/sections/common/orsrc/shared/(no barrel files).Acceptance Criteria:
Additional Context:
src/entry-client.tsx,src/entry-server.tsx,src/middleware.tssrc/modules/observability/*,src/instrument.server.tssrc/sections/common/ErrorSwitchToStable.tsx(orsrc/shared/ui/ErrorSwitchToStable.tsx)src/app-version.ts,app.config.ts(or runtime environment)