@@ -1963,7 +1963,6 @@ NOTES
19631963 - You must be logged in with a Claude account that has a subscription
19641964 - Run \`claude\` first in the directory to accept the workspace trust dialog
19651965${ serverNote } `
1966- // biome-ignore lint/suspicious/noConsole: intentional help output
19671966 console . log ( help )
19681967}
19691968
@@ -2002,7 +2001,6 @@ export async function bridgeMain(args: string[]): Promise<void> {
20022001 return
20032002 }
20042003 if ( parsed . error ) {
2005- // biome-ignore lint/suspicious/noConsole: intentional error output
20062004 console . error ( `Error: ${ parsed . error } ` )
20072005 // eslint-disable-next-line custom-rules/no-process-exit
20082006 process . exit ( 1 )
@@ -2041,7 +2039,6 @@ export async function bridgeMain(args: string[]): Promise<void> {
20412039 const { PERMISSION_MODES } = await import ( '../types/permissions.js' )
20422040 const valid : readonly string [ ] = PERMISSION_MODES
20432041 if ( ! valid . includes ( permissionMode ) ) {
2044- // biome-ignore lint/suspicious/noConsole: intentional error output
20452042 console . error (
20462043 `Error: Invalid permission mode '${ permissionMode } '. Valid modes: ${ valid . join ( ', ' ) } ` ,
20472044 )
@@ -2084,7 +2081,6 @@ export async function bridgeMain(args: string[]): Promise<void> {
20842081 Promise . all ( [ shutdown1PEventLogging ( ) , shutdownDatadog ( ) ] ) ,
20852082 sleep ( 500 , undefined , { unref : true } ) ,
20862083 ] ) . catch ( ( ) => { } )
2087- // biome-ignore lint/suspicious/noConsole: intentional error output
20882084 console . error (
20892085 'Error: Multi-session Remote Control is not enabled for your account yet.' ,
20902086 )
@@ -2101,7 +2097,6 @@ export async function bridgeMain(args: string[]): Promise<void> {
21012097 // The bridge bypasses main.tsx (which renders the interactive TrustDialog via showSetupScreens),
21022098 // so we must verify trust was previously established by a normal `claude` session.
21032099 if ( ! checkHasTrustDialogAccepted ( ) ) {
2104- // biome-ignore lint/suspicious/noConsole:: intentional console output
21052100 console . error (
21062101 `Error: Workspace not trusted. Please run \`claude\` in ${ dir } first to review and accept the workspace trust dialog.` ,
21072102 )
@@ -2118,7 +2113,6 @@ export async function bridgeMain(args: string[]): Promise<void> {
21182113
21192114 const bridgeToken = getBridgeAccessToken ( )
21202115 if ( ! bridgeToken ) {
2121- // biome-ignore lint/suspicious/noConsole:: intentional console output
21222116 console . error ( BRIDGE_LOGIN_ERROR )
21232117 // eslint-disable-next-line custom-rules/no-process-exit
21242118 process . exit ( 1 )
@@ -2137,7 +2131,6 @@ export async function bridgeMain(args: string[]): Promise<void> {
21372131 input : process . stdin ,
21382132 output : process . stdout ,
21392133 } )
2140- // biome-ignore lint/suspicious/noConsole:: intentional console output
21412134 console . log (
21422135 '\nRemote Control lets you access this CLI session from the web (claude.ai/code)\nor the Claude app, so you can pick up where you left off on any device.\n\nYou can disconnect remote access anytime by running /remote-control again.\n' ,
21432136 )
@@ -2169,7 +2162,6 @@ export async function bridgeMain(args: string[]): Promise<void> {
21692162 )
21702163 const found = await readBridgePointerAcrossWorktrees ( dir )
21712164 if ( ! found ) {
2172- // biome-ignore lint/suspicious/noConsole: intentional error output
21732165 console . error (
21742166 `Error: No recent session found in this directory or its worktrees. Run \`claude remote-control\` to start a new one.` ,
21752167 )
@@ -2180,7 +2172,6 @@ export async function bridgeMain(args: string[]): Promise<void> {
21802172 const ageMin = Math . round ( pointer . ageMs / 60_000 )
21812173 const ageStr = ageMin < 60 ? `${ ageMin } m` : `${ Math . round ( ageMin / 60 ) } h`
21822174 const fromWt = pointerDir !== dir ? ` from worktree ${ pointerDir } ` : ''
2183- // biome-ignore lint/suspicious/noConsole: intentional info output
21842175 console . error (
21852176 `Resuming session ${ pointer . sessionId } (${ ageStr } ago)${ fromWt } \u2026` ,
21862177 )
@@ -2201,7 +2192,6 @@ export async function bridgeMain(args: string[]): Promise<void> {
22012192 ! baseUrl . includes ( 'localhost' ) &&
22022193 ! baseUrl . includes ( '127.0.0.1' )
22032194 ) {
2204- // biome-ignore lint/suspicious/noConsole:: intentional console output
22052195 console . error (
22062196 'Error: Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed.' ,
22072197 )
@@ -2237,7 +2227,6 @@ export async function bridgeMain(args: string[]): Promise<void> {
22372227 ? getCurrentProjectConfig ( ) . remoteControlSpawnMode
22382228 : undefined
22392229 if ( savedSpawnMode === 'worktree' && ! worktreeAvailable ) {
2240- // biome-ignore lint/suspicious/noConsole: intentional warning output
22412230 console . error (
22422231 'Warning: Saved spawn mode is worktree but this directory is not a git repository. Falling back to same-dir.' ,
22432232 )
@@ -2264,7 +2253,6 @@ export async function bridgeMain(args: string[]): Promise<void> {
22642253 input : process . stdin ,
22652254 output : process . stdout ,
22662255 } )
2267- // biome-ignore lint/suspicious/noConsole: intentional dialog output
22682256 console . log (
22692257 `\nClaude Remote Control is launching in spawn mode which lets you create new sessions in this project from Claude Code on Web or your Mobile app. Learn more here: https://code.claude.com/docs/en/remote-control\n\n` +
22702258 `Spawn mode for this project:\n` +
@@ -2343,7 +2331,6 @@ export async function bridgeMain(args: string[]): Promise<void> {
23432331 // Only reachable via explicit --spawn=worktree (default is same-dir);
23442332 // saved worktree pref was already guarded above.
23452333 if ( spawnMode === 'worktree' && ! worktreeAvailable ) {
2346- // biome-ignore lint/suspicious/noConsole: intentional error output
23472334 console . error (
23482335 `Error: Worktree mode requires a git repository or WorktreeCreate hooks configured. Use --spawn=session for single-session mode.` ,
23492336 )
@@ -2378,7 +2365,6 @@ export async function bridgeMain(args: string[]): Promise<void> {
23782365 try {
23792366 validateBridgeId ( resumeSessionId , 'sessionId' )
23802367 } catch {
2381- // biome-ignore lint/suspicious/noConsole: intentional error output
23822368 console . error (
23832369 `Error: Invalid session ID "${ resumeSessionId } ". Session IDs must not contain unsafe characters.` ,
23842370 )
@@ -2404,7 +2390,6 @@ export async function bridgeMain(args: string[]): Promise<void> {
24042390 const { clearBridgePointer } = await import ( './bridgePointer.js' )
24052391 await clearBridgePointer ( resumePointerDir )
24062392 }
2407- // biome-ignore lint/suspicious/noConsole: intentional error output
24082393 console . error (
24092394 `Error: Session ${ resumeSessionId } not found. It may have been archived or expired, or your login may have lapsed (run \`claude /login\`).` ,
24102395 )
@@ -2416,7 +2401,6 @@ export async function bridgeMain(args: string[]): Promise<void> {
24162401 const { clearBridgePointer } = await import ( './bridgePointer.js' )
24172402 await clearBridgePointer ( resumePointerDir )
24182403 }
2419- // biome-ignore lint/suspicious/noConsole: intentional error output
24202404 console . error (
24212405 `Error: Session ${ resumeSessionId } has no environment_id. It may never have been attached to a bridge.` ,
24222406 )
@@ -2470,7 +2454,6 @@ export async function bridgeMain(args: string[]): Promise<void> {
24702454 status : err instanceof BridgeFatalError ? err . status : undefined ,
24712455 } )
24722456 // Registration failures are fatal — print a clean message instead of a stack trace.
2473- // biome-ignore lint/suspicious/noConsole:: intentional console output
24742457 console . error (
24752458 err instanceof BridgeFatalError && err . status === 404
24762459 ? 'Remote Control environments are not available for your account.'
@@ -2495,7 +2478,6 @@ export async function bridgeMain(args: string[]): Promise<void> {
24952478 `Bridge resume env mismatch: requested ${ reuseEnvironmentId } , backend returned ${ environmentId } . Falling back to fresh session.` ,
24962479 ) ,
24972480 )
2498- // biome-ignore lint/suspicious/noConsole: intentional warning output
24992481 console . warn (
25002482 `Warning: Could not resume session ${ resumeSessionId } — its environment has expired. Creating a fresh session instead.` ,
25012483 )
@@ -2546,7 +2528,6 @@ export async function bridgeMain(args: string[]): Promise<void> {
25462528 const { clearBridgePointer } = await import ( './bridgePointer.js' )
25472529 await clearBridgePointer ( resumePointerDir )
25482530 }
2549- // biome-ignore lint/suspicious/noConsole: intentional error output
25502531 console . error (
25512532 isFatal
25522533 ? `Error: ${ errorMessage ( err ) } `
0 commit comments