Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["9815"],{77138(e,t,n){n.r(t),n.d(t,{assets:()=>u,contentTitle:()=>i,default:()=>c,frontMatter:()=>o,metadata:()=>r,toc:()=>d});var r=n(90344),a=n(74848),s=n(28453);let o={slug:"the-wizard-that-quit-at-the-menu",title:"The setup wizard that quit at the first menu",description:"For six releases, a brand-new Mercury install asked for your name, showed one menu, and exited without an error. A walkthrough of a one-tick race between two readers of the same terminal, and the test that now keeps it from coming back.",authors:["mercury-eng"],tags:["engineering","postmortem"],image:"./cover.jpg",keywords:["node readline","stdin pause","raw mode","cli setup wizard","pseudo terminal test","postmortem","node.js bug"]},i,u={image:n(55503).A,authorsImageUrls:[void 0]},d=[];function m(e){let t={code:"code",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.p,{children:"Here's what a new user saw, from first install, on any platform, between versions 1.3.1 and 1.3.6:"}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-text",children:" Your name: Ada\n Agent name [Mercury]:\n\n Choose your mode\n Use the arrow keys, then press Enter.\n\n \u25CF Mercury Cloud (hosted, no API keys needed)\n \xb7 Offline / BYOK (bring your own keys)\n\n$\n"})}),"\n",(0,a.jsxs)(t.p,{children:["That ",(0,a.jsx)(t.code,{children:"$"})," is the shell prompt. Mercury didn't crash and didn't print an error. It drew a menu and then simply wasn't running anymore. The exit code was 0."]})]})}function c(e={}){let{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(m,{...e})}):m(e)}},55503(e,t,n){n.d(t,{A:()=>r});let r=n.p+"assets/images/cover-38161922d5058f5d58b7b27b960490f6.jpg"},28453(e,t,n){n.d(t,{R:()=>o,x:()=>i});var r=n(96540);let a={},s=r.createContext(a);function o(e){let t=r.useContext(s);return r.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function i(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),r.createElement(s.Provider,{value:t},e.children)}},90344(e){e.exports=JSON.parse('{"permalink":"/blog/the-wizard-that-quit-at-the-menu","editUrl":"https://github.com/cosmicstack-labs/mercury-agent/tree/main/website/blog/2026-10-15-the-wizard-that-quit-at-the-menu/index.md","source":"@site/blog/2026-10-15-the-wizard-that-quit-at-the-menu/index.md","title":"The setup wizard that quit at the first menu","description":"For six releases, a brand-new Mercury install asked for your name, showed one menu, and exited without an error. A walkthrough of a one-tick race between two readers of the same terminal, and the test that now keeps it from coming back.","date":"2026-10-15T00:00:00.000Z","tags":[{"inline":false,"label":"Engineering","permalink":"/blog/tags/engineering","description":"How Mercury is built, what broke, and what we changed so it does not break again."},{"inline":false,"label":"Postmortem","permalink":"/blog/tags/postmortem","description":"Incidents and bugs, written up honestly."}],"readingTime":4.53,"hasTruncateMarker":true,"authors":[{"name":"Mercury Engineering","title":"The team behind Mercury","description":"Postmortems, design notes and the reasoning behind how Mercury works.","url":"https://github.com/cosmicstack-labs/mercury-agent","page":{"permalink":"/blog/authors/mercury-eng"},"socials":{"github":"https://github.com/cosmicstack-labs"},"imageURL":"/img/avatar-mercury.png","key":"mercury-eng"}],"frontMatter":{"slug":"the-wizard-that-quit-at-the-menu","title":"The setup wizard that quit at the first menu","description":"For six releases, a brand-new Mercury install asked for your name, showed one menu, and exited without an error. A walkthrough of a one-tick race between two readers of the same terminal, and the test that now keeps it from coming back.","authors":["mercury-eng"],"tags":["engineering","postmortem"],"image":"./cover.jpg","keywords":["node readline","stdin pause","raw mode","cli setup wizard","pseudo terminal test","postmortem","node.js bug"]},"unlisted":false,"prevItem":{"title":"Mercury Bots: an agent fleet that runs on your machine","permalink":"/blog/mercury-bots"},"nextItem":{"title":"We were running Mercury twice and didn\'t know it","permalink":"/blog/we-were-running-mercury-twice"}}')}}]);