refactor: give native chat readability one concrete owner (#35231)

This commit is contained in:
Neil
2026-10-28 11:28:03 -07:00
committed by GitHub
parent 28d6883756
commit 80bbbaff7f
20 changed files with 18 additions and 19 deletions
@@ -0,0 +1,11 @@
import { describe, expect, it } from 'vitest'
import { isNativeChatTranscriptLocalReadable } from './native-chat-transcript-readability'
describe('native chat transcript readability', () => {
it('allows local and runtime-owned hosts but rejects Model-A SSH and unresolved hosts', () => {
expect(isNativeChatTranscriptLocalReadable(null)).toBe(true)
expect(isNativeChatTranscriptLocalReadable('runtime-ssh-env-1')).toBe(true)
expect(isNativeChatTranscriptLocalReadable('ssh-target-1')).toBe(false)
expect(isNativeChatTranscriptLocalReadable(undefined)).toBe(false)
})
})
@@ -1,4 +1,4 @@
import { isRuntimeOwnedSshTargetId } from './execution-host'
import { isRuntimeOwnedSshTargetId } from '../../execution-host'
/** Model-A SSH stores Grok transcripts on a host this renderer cannot read. */
export function isNativeChatTranscriptLocalReadable(