Revert "Fix Claude PR hyperlinks in terminal" (#5826)

This commit is contained in:
Neil
2026-06-19 12:29:13 -07:00
committed by GitHub
parent 2226e3cbc2
commit 5dbff5d8ea
7 changed files with 43 additions and 66 deletions
@@ -1,18 +0,0 @@
import { describe, expect, it } from 'vitest'
import { buildTerminalCapabilityEnv } from './terminal-capability-env'
describe('buildTerminalCapabilityEnv', () => {
it('advertises xterm.js-compatible hyperlink capabilities and Orca identity', () => {
const env = buildTerminalCapabilityEnv('1.2.3')
expect(env).toEqual({
TERM: 'xterm-256color',
COLORTERM: 'truecolor',
TERM_PROGRAM: 'vscode',
TERM_PROGRAM_VERSION: '1.100.0',
ORCA_TERM_PROGRAM: 'Orca',
ORCA_TERM_PROGRAM_VERSION: '1.2.3',
FORCE_HYPERLINK: '1'
})
})
})
-19
View File
@@ -1,19 +0,0 @@
const XTERM_JS_COMPATIBLE_TERM_PROGRAM = 'vscode'
const XTERM_JS_COMPATIBLE_TERM_PROGRAM_VERSION = '1.100.0'
export function buildTerminalCapabilityEnv(appVersion: string): Record<string, string> {
return {
TERM: 'xterm-256color',
COLORTERM: 'truecolor',
// Why: Claude Code and other CLIs gate OSC 8 links on known xterm.js
// embedders. Do not change this back to "Orca": that makes PR links
// render as plain text. ORCA_* keeps our real app identity available.
TERM_PROGRAM: XTERM_JS_COMPATIBLE_TERM_PROGRAM,
TERM_PROGRAM_VERSION: XTERM_JS_COMPATIBLE_TERM_PROGRAM_VERSION,
ORCA_TERM_PROGRAM: 'Orca',
ORCA_TERM_PROGRAM_VERSION: appVersion,
// Why: supports-hyperlinks can still miss Electron embedders; force OSC 8
// output because Orca parses and routes those links natively.
FORCE_HYPERLINK: '1'
}
}