Skip to content
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
d111405
feat: add durable conversation navigation and inspectable child history
gentslava Oct 28, 2026
0e664dc
Merge upstream main and preserve project conversation navigation
gentslava Oct 29, 2026
4f4412c
fix: align project conversation rows with current agent states
gentslava Oct 29, 2026
6ce234b
fix: retain project conversations when navigating between projects
gentslava Oct 29, 2026
a9ef76a
Merge upstream main and preserve project conversation navigation
gentslava Oct 29, 2026
cdadd4f
Merge pinned upstream main 4e9e320e3274
gentslava Oct 29, 2026
a558394
fix(projects): preserve complete host-qualified history navigation
gentslava Oct 29, 2026
0e214e6
fix(projects): ignore legacy empty-history filter in chat navigation
gentslava Oct 29, 2026
7e46e1d
Merge commit '4642bc00d6198ae90a91eeacd60f8fff53389312' into gentslav…
gentslava Oct 29, 2026
5f5d873
fix(projects): keep new chat bound to its listed host
gentslava Oct 29, 2026
ffe2411
test(sidebar): explicitly enable navigation controls under test
gentslava Oct 29, 2026
8cde316
Merge upstream main and preserve project conversation navigation
gentslava Oct 30, 2026
7c81732
Merge upstream agent setup choices into project conversation navigation
gentslava Oct 30, 2026
28ab7bd
Merge upstream main and reconcile conversation navigation ownership
gentslava Oct 31, 2026
be0d334
Keep project header host identity when host sections collapse
gentslava Oct 31, 2026
4a6b883
Format project header localization
gentslava Oct 31, 2026
bf0fb19
Keep conversation navigation aligned with acquired account ownership
gentslava Oct 31, 2026
491cd14
Keep PR 33361 integration checks aligned with current upstream
gentslava Oct 31, 2026
89d0023
Preserve current integration coverage for PR 33361
gentslava Oct 31, 2026
05cf89b
test(windows): dismiss onboarding before changing sidebar mode
gentslava Oct 31, 2026
c024acb
test(navigation): model the workspace sidebar in terminal driver fixt…
gentslava Oct 31, 2026
2179a96
style(navigation): keep driver fixture branches explicit
gentslava Oct 31, 2026
309f0fe
test(e2e): select workspace sidebar for legacy scenarios
gentslava Oct 31, 2026
e5b017f
test(navigation): select workspace view in moved-project journeys
gentslava Oct 31, 2026
b3d0761
test(navigation): align restart fixtures and settle WSL activation
gentslava Oct 31, 2026
94d7e15
test: open Explorer before remote file tree assertions
gentslava Oct 31, 2026
7984ef3
Merge current main and route saved conversations through canonical ho…
gentslava Nov 1, 2026
ebdfef7
Merge current main while preserving feature behavior
gentslava Nov 1, 2026
ba0855b
Merge newer main and update relocated module references
gentslava Nov 1, 2026
f2515c2
Merge upstream main and preserve project-first agent menu placement
gentslava Nov 1, 2026
f33e6b2
Merge current main and retain conversation account projection
gentslava Nov 1, 2026
1da18e4
Merge current main and update conversation navigation imports
gentslava Nov 1, 2026
06d2347
Refresh Add durable project-based conversation navigation against cur…
gentslava Nov 2, 2026
fc4bf81
Merge frozen upstream main into conversation navigation
gentslava Nov 3, 2026
2f1bea3
Merge current main and preserve conversation navigation contracts
gentslava Nov 3, 2026
d9be23d
Merge commit '4e3ee00eda8b485fcbc993b32efdf76508429a07' into HEAD
gentslava Nov 3, 2026
1345ff3
Merge commit '31fb68b669fcc6a5c29710361682833ca72afd2f' into refresh-…
gentslava Nov 3, 2026
edc9848
Merge commit '14819eb8c043b35fca48364a3ec1fdad0eb52873' into refresh-…
gentslava Nov 3, 2026
60fb1a3
Refresh PR 33361 against current upstream owners
gentslava Nov 4, 2026
0fd691e
Refresh PR 33361 against current upstream owners
gentslava Nov 4, 2026
6927b42
Show pending chat scans before declaring projects empty
gentslava Nov 4, 2026
2b6deb3
Merge current upstream into Add durable project-based conversation na…
gentslava Nov 6, 2026
dfecd7d
Merge latest upstream into feature 33361
gentslava Nov 6, 2026
dfdd0de
Merge current upstream with feature 33361
gentslava Nov 7, 2026
c6bb3ec
Preserve feature-first history for PR 33361
gentslava Nov 7, 2026
60743bb
Merge current upstream into conversation navigation
gentslava Nov 8, 2026
4952382
Keep conversation navigation translations in fork overlay
gentslava Nov 8, 2026
f7ebb66
Merge current upstream preserving chat catalog and saved lists
gentslava Nov 9, 2026
04b3678
Merge current upstream into conversation navigation
gentslava Nov 9, 2026
5286016
fix: keep conversation schemas tree-shakeable on mobile
gentslava Nov 9, 2026
070c46a
Merge latest upstream into feature 33361
gentslava Nov 10, 2026
e72777e
Use current catalog owners and reactive sidebar translations
gentslava Nov 10, 2026
e020563
Merge current upstream module owners into feature 33361
gentslava Nov 10, 2026
1f8fe86
test(windows): create the terminal explicitly after workspace creation
gentslava Nov 10, 2026
69343f7
test(windows): open the copy fixture workspace explicitly
gentslava Nov 10, 2026
ac78a0c
Merge current upstream workspace ownership paths into conversation na…
gentslava Nov 10, 2026
b23945c
Merge current upstream module owners into feature 33361
gentslava Nov 11, 2026
04fecc9
Merge latest upstream compatibility into feature 33361
gentslava Nov 11, 2026
dcae5af
Merge upstream handoff snapshot imports into feature 33361
gentslava Nov 11, 2026
88bc7b0
Merge upstream original-pane navigation into conversation feature
gentslava Nov 11, 2026
09537cb
Merge upstream project admission into conversation navigation
gentslava Nov 12, 2026
e72fb6c
Merge current upstream into PR 33361
gentslava Nov 12, 2026
27824c0
Keep conversation labels reactive after upstream localization migration
gentslava Nov 12, 2026
f502dcf
Keep conversation preference callbacks compatible with React Compiler
gentslava Nov 12, 2026
f03df8a
Merge current upstream main into PR 33361
gentslava Nov 14, 2026
cd7a377
Merge current upstream main into PR 33361
gentslava Nov 14, 2026
96e1bf4
Merge current upstream main into PR 33361
gentslava Nov 15, 2026
c6304b1
Merge current upstream main into PR 33361
gentslava Nov 16, 2026
d695f72
Merge current upstream main into PR 33361
gentslava Nov 16, 2026
ffc747f
Merge current upstream main into PR 33361
gentslava Nov 16, 2026
e41a975
Fix navigation test imports after launch-menu relocation
gentslava Nov 16, 2026
50a74db
Merge current upstream main into PR 33361
gentslava Nov 18, 2026
317c250
Follow current upstream module owners in conversation navigation
gentslava Nov 18, 2026
84a63f8
Merge current upstream main into PR 33361
gentslava Nov 18, 2026
1ca0ad6
style: format SidebarHeader.tsx after the upstream merge
gentslava Nov 18, 2026
799c80b
Keep Workspaces as the default sidebar list and remember the user's pick
gentslava Nov 18, 2026
eb1c8f7
Restore upstream defaults for compact cards and toolbar buttons
gentslava Nov 18, 2026
fa36a83
Restore upstream right sidebar first-run defaults
gentslava Nov 18, 2026
8460dc7
test(windows): wait for the seeded terminal after workspace creation
gentslava Nov 18, 2026
9c25b6a
refactor(ai-vault): move the conversation row open into a session-act…
gentslava Nov 18, 2026
4040167
Merge current upstream main into PR 33361
gentslava Nov 19, 2026
0d2dc57
Merge upstream main 75339dcf434 into PR 33361
gentslava Nov 21, 2026
43de039
Use neutral project names in conversation fixtures
gentslava Nov 21, 2026
7d0f620
Name the sessions view Sessions and choose it in Appearance
gentslava Nov 21, 2026
618ce0a
Keep conversation navigation and Cursor previews
gentslava Nov 23, 2026
aeaf787
Keep composed view-option exports in conversation search tests
gentslava Nov 25, 2026
df8c498
Type the conversation search mock with a namespace import
gentslava Nov 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/ai-vault/runtime-session-scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export async function scanRuntimeAiVaultSessions(
'aiVault.listSessions',
{
includeAntigravityIdeSessions: args.includeAntigravityIdeSessions,
...(args.includeStructuredSessions ? { includeStructuredSessions: true } : {}),
limit: args.limit,
unlimited: args.unlimited,
force: args.force,
Expand Down
21 changes: 21 additions & 0 deletions src/main/ai-vault/session-list-result-validation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,27 @@ describe('parseAiVaultListResult', () => {
])
})

it('keeps optional conversation evidence and degrades unknown future evidence without losing the row', () => {
const result = parseAiVaultListResult({
sessions: [
{ ...validSession('empty'), conversationContent: 'empty' },
{ ...validSession('present'), conversationContent: 'present' },
{ ...validSession('unknown'), conversationContent: 'unknown' },
{ ...validSession('future'), conversationContent: 'future-value' },
validSession('legacy')
],
issues: [],
scannedAt: '2026-10-26T00:00:00Z'
})
expect(result.sessions.map((session) => session.conversationContent)).toEqual([
'empty',
'present',
'unknown',
undefined,
undefined
])
})

it('keeps valid sessions when another wire entry is malformed', () => {
const parsed = parseAiVaultListResult({
sessions: [validSession(), { id: 42 }],
Expand Down
2 changes: 2 additions & 0 deletions src/main/ai-vault/session-list-result-validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ const sessionPreviewMessageSchema = z.object({
})

const aiVaultSessionSchema = z.object({
source: z.literal('structured-record').optional(),
conversationContent: z.enum(['empty', 'present', 'unknown']).optional().catch(undefined),
id: z.string(),
executionHostId: executionHostIdSchema,
executionHostPlatform: nodePlatformSchema.nullable().optional(),
Expand Down
2 changes: 1 addition & 1 deletion src/main/ai-vault/session-parse-cache-database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
import { parsePersistedSidecar } from './session-sidecar-stat'

// Bump for row-layout or cached-semantic changes; mismatched databases are discarded.
export const SESSION_PARSE_CACHE_SCHEMA_VERSION = 8
export const SESSION_PARSE_CACHE_SCHEMA_VERSION = 9

const SCHEMA_SQL = `
CREATE TABLE IF NOT EXISTS meta(key TEXT PRIMARY KEY, value TEXT NOT NULL);
Expand Down
143 changes: 143 additions & 0 deletions src/main/ai-vault/session-scanner-claude-conversation-content.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
import { appendFile, mkdtemp, rm } from 'node:fs/promises'
import { tmpdir } from 'node:os'
import { join } from 'node:path'
import { afterEach, describe, expect, it } from 'vitest'
import { projectConversations } from '../../shared/project-conversation-list'
import { scanAiVaultSessions } from './session-scanner'
import { MAX_SESSION_TRANSCRIPT_RECORD_BYTES } from './session-transcript-record-budget'
import { isolatedScanRoots, writeJsonlFile } from './session-scanner-test-fixtures'

const roots: string[] = []
const caveat = '<local-command-caveat>Local command output follows</local-command-caveat>'
const preferences = { revision: 0, entries: {} }

afterEach(async () => {
await Promise.all(roots.splice(0).map((root) => rm(root, { recursive: true, force: true })))
})

async function history() {
const root = await mkdtemp(join(tmpdir(), 'orca-native-claude-content-'))
roots.push(root)
const options = { ...isolatedScanRoots(root), claudeProfileProjectsDirs: [] }
return {
options,
file: (id: string) => join(options.claudeProjectsDir, 'project', `${id}.jsonl`)
}
}

function user(sessionId: string, content: unknown) {
return {
type: 'user',
sessionId,
cwd: '/notes',
timestamp: '2026-10-01T10:00:00.000Z',
message: { role: 'user', content }
}
}

describe('native Claude conversation content evidence', () => {
it('keeps command transcripts readable without creating a placeholder Projects chat', async () => {
const { options, file } = await history()
await writeJsonlFile(file('command-only'), [
{ type: 'mode', sessionId: 'command-only', mode: 'default' },
{ type: 'permission-mode', sessionId: 'command-only', permissionMode: 'default' },
user('command-only', caveat),
user('command-only', '<command-name>/exit</command-name>'),
user('command-only', '<local-command-stdout>See you</local-command-stdout>')
])

const result = await scanAiVaultSessions(options)

expect(result.issues).toEqual([])
expect(result.sessions).toHaveLength(1)
expect(result.sessions[0]).toMatchObject({
title: 'Claude command-',
conversationContent: 'empty',
messageCount: 3,
previewMessages: expect.arrayContaining([expect.objectContaining({ text: caveat })])
})
expect(projectConversations(result.sessions, preferences)).toEqual([])

await appendFile(
file('command-only'),
`${JSON.stringify(user('command-only', 'Repair the reader'))}\n`
)
const updated = await scanAiVaultSessions(options)
expect(updated.sessions[0]).toMatchObject({
id: result.sessions[0]?.id,
title: 'Repair the reader',
conversationContent: 'present',
messageCount: 4
})
expect(projectConversations(updated.sessions, preferences)).toHaveLength(1)
})

it('retains queued, non-text, unknown and corrupt provider history', async () => {
const { options, file } = await history()
await writeJsonlFile(file('queued'), [
{ type: 'queue-operation', operation: 'enqueue', sessionId: 'queued', content: 'Recover me' }
])
await writeJsonlFile(file('non-text'), [
user('non-text', [{ type: 'image', source: { type: 'base64', data: 'aGVsbG8=' } }])
])
await writeJsonlFile(file('tool-result'), [
user('tool-result', [{ type: 'tool_result', content: 'Tool output cannot name a chat' }])
])
await writeJsonlFile(file('unknown'), [
{ type: 'future-provider-record', sessionId: 'unknown' }
])
await writeJsonlFile(file('corrupt'), [user('corrupt', caveat)])
await appendFile(file('corrupt'), '{incomplete provider record\n')

const result = await scanAiVaultSessions(options)
const content = new Map(
result.sessions.map((session) => [session.sessionId, session.conversationContent])
)

expect(result.issues).toEqual([])
expect(content.get('queued')).toBe('present')
expect(content.get('non-text')).toBe('present')
expect(result.sessions.find((session) => session.sessionId === 'tool-result')?.title).toBe(
'Claude tool-res'
)
expect(content.get('unknown')).toBe('unknown')
expect(content.get('corrupt')).toBe('unknown')
expect(projectConversations(result.sessions, preferences)).toHaveLength(5)
})

it('never calls a transcript empty when bounded reads skipped possible history', async () => {
const { options, file } = await history()
await writeJsonlFile(file('oversized'), [user('oversized', caveat)])
await appendFile(file('oversized'), `${'x'.repeat(MAX_SESSION_TRANSCRIPT_RECORD_BYTES + 1)}\n`)

const result = await scanAiVaultSessions(options)

expect(result.issues).toEqual([expect.objectContaining({ kind: 'notice' })])
expect(result.sessions[0]?.conversationContent).toBe('unknown')
expect(projectConversations(result.sessions, preferences)).toHaveLength(1)
await appendFile(file('oversized'), `${JSON.stringify(user('oversized', caveat))}\n`)
const updated = await scanAiVaultSessions(options)
expect(updated.sessions[0]?.conversationContent).toBe('unknown')
})

it('recovers late child transcripts even when cached command records count as turns', async () => {
const { options, file } = await history()
await writeJsonlFile(file('late-child'), [user('late-child', caveat)])
const first = await scanAiVaultSessions(options)
expect(first.sessions[0]?.conversationContent).toBe('empty')

await writeJsonlFile(
join(options.claudeProjectsDir, 'project', 'late-child', 'subagents', 'agent-late.jsonl'),
[user('child', 'Recover this work')]
)
const second = await scanAiVaultSessions(options)

expect(second.sessions[0]).toMatchObject({
id: first.sessions[0]?.id,
messageCount: 1,
subagentTranscriptCount: 1,
conversationContent: 'present'
})
expect(projectConversations(second.sessions, preferences)).toHaveLength(1)
})
})
8 changes: 6 additions & 2 deletions src/main/ai-vault/session-scanner-parse-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ async function reuseCachedSession(
}
let session = entry.session
// Zero-turn parents may never change again; recount late subagent transcripts outside the cached file signature.
if (session && session.messageCount === 0) {
if (session && (session.messageCount === 0 || session.conversationContent === 'empty')) {
const subagentTranscriptCount =
session.agent === 'claude'
? await countSubagentTranscripts(candidate.file.path)
Expand All @@ -264,7 +264,11 @@ async function reuseCachedSession(
subagentTranscriptCount !== null &&
subagentTranscriptCount !== session.subagentTranscriptCount
) {
session = { ...session, subagentTranscriptCount }
session = {
...session,
subagentTranscriptCount,
...(subagentTranscriptCount > 0 ? { conversationContent: 'present' as const } : {})
}
}
}
// Index titles can change independently of the transcript signature.
Expand Down
49 changes: 37 additions & 12 deletions src/main/ai-vault/session-scanner-primary-parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
updateTimeline
} from './session-scanner-accumulator'
import { addSessionContent } from './session-scanner-messages'
import { extractFullFirstUserPromptText } from './session-scanner-first-user-prompt'
import { countSubagentTranscripts } from './session-scanner-subagent-transcripts'
import {
asRecord,
Expand All @@ -43,6 +44,7 @@ export type ClaudeSessionParseState = {
metaTitle: string | null
generatedTitle: string | null
firstUserTitle: string | null
conversationContent: NonNullable<AiVaultSession['conversationContent']>
}

export function createClaudeSessionParseState(
Expand All @@ -58,7 +60,8 @@ export function createClaudeSessionParseState(
}),
metaTitle: null,
generatedTitle: null,
firstUserTitle: null
firstUserTitle: null,
conversationContent: 'empty'
}
}

Expand All @@ -72,14 +75,17 @@ export function cloneClaudeSessionParseState(
},
metaTitle: state.metaTitle,
generatedTitle: state.generatedTitle,
firstUserTitle: state.firstUserTitle
firstUserTitle: state.firstUserTitle,
conversationContent: state.conversationContent
}
}

export function consumeClaudeSessionLine(state: ClaudeSessionParseState, line: string): void {
const record = parseJsonObject(line)
if (record) {
consumeClaudeSessionRecord(state, record)
} else if (line.trim() && state.conversationContent !== 'present') {
state.conversationContent = 'unknown'
}
}

Expand Down Expand Up @@ -108,8 +114,14 @@ export function consumeClaudeSessionRecord(
return
}

if (record.type === 'agent-name' && !state.generatedTitle) {
state.metaTitle ??= normalizeTitleText(extractString(record.agentName) ?? '')
if (record.type === 'agent-name') {
if (!state.generatedTitle) {
state.metaTitle ??= normalizeTitleText(extractString(record.agentName) ?? '')
}
return
}

if (record.type === 'mode' || record.type === 'permission-mode') {
return
}

Expand All @@ -127,6 +139,7 @@ export function consumeClaudeSessionRecord(
const prompt = normalizePromptField(record.lastPrompt)
if (prompt) {
accumulator.lastUserPrompt = prompt
state.conversationContent = 'present'
}
return
}
Expand All @@ -140,17 +153,16 @@ export function consumeClaudeSessionRecord(
addSessionContent(accumulator, 'user', asRecord(record.message)?.content, record.timestamp, {
seedFirstUserPrompt: !isMetaUserTurn
})
if (title) {
if (isMetaUserTurn) {
state.metaTitle ??= title
} else {
state.firstUserTitle ??= title
}
if (!isMetaUserTurn) {
state.conversationContent = 'present'
const prompt = extractFullFirstUserPromptText(asRecord(record.message)?.content)
state.firstUserTitle ??= prompt ? normalizeTitleText(prompt) : null
}
return
}

if (record.type === 'assistant') {
state.conversationContent = 'present'
accumulator.messageCount++
const message = asRecord(record.message)
addSessionContent(accumulator, 'assistant', message?.content, record.timestamp)
Expand All @@ -159,6 +171,10 @@ export function consumeClaudeSessionRecord(
accumulator.model = model
}
accumulator.totalTokens += claudeUsageTotal(message?.usage)
return
}
if (state.conversationContent !== 'present') {
state.conversationContent = 'unknown'
}
}

Expand All @@ -169,7 +185,7 @@ export async function finalizeClaudeSessionParseState(
): Promise<AiVaultSession | null> {
// Detach previews so later appends cannot mutate a published session.
const snapshot = cloneClaudeSessionParseState(state)
// Explicit custom titles win, then generated names, real prompts and injected-context fallbacks.
// Explicit custom titles win, then generated names, real prompts and agent names.
snapshot.accumulator.fallbackTitle =
snapshot.generatedTitle ?? snapshot.firstUserTitle ?? snapshot.metaTitle
// Count only on the transcript-owning host; runtime hosts stamp identity after parsing, while SSH walks supply counts.
Expand All @@ -180,7 +196,16 @@ export async function finalizeClaudeSessionParseState(
snapshot.accumulator.filePath
)
}
return finalizeSession(snapshot.accumulator, platform, options)
const session = finalizeSession(snapshot.accumulator, platform, options)
return session
? {
...session,
conversationContent:
session.queuedMessageCount > 0 || session.subagentTranscriptCount > 0
? 'present'
: snapshot.conversationContent
}
: null
}

export function createClaudeSessionResumeState(
Expand Down
15 changes: 9 additions & 6 deletions src/main/ai-vault/session-transcript-reader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,14 @@ export async function readResumableTranscript(
channel.mute(() => displayState.consumeLine(partialLine))
}

const session = await displayState.finalize(args.platform)
const skippedRecords = mergeSkippedTranscriptRecords(
canResume ? resume.skippedRecords : [],
readResult.skippedRecords
)
let session = await displayState.finalize(args.platform)
if (session?.conversationContent === 'empty' && skippedRecords.length > 0) {
session = { ...session, conversationContent: 'unknown' }
}
const consumerSession = args.sessionForConsumers
? await args.sessionForConsumers(session)
: session
Expand All @@ -139,11 +146,7 @@ export async function readResumableTranscript(
mtimeMs: file.mtimeMs,
sizeBytes: file.sizeBytes,
channel,
// Retain earlier skips only for append reads; replacements revisit those records.
skippedRecords: mergeSkippedTranscriptRecords(
canResume ? resume.skippedRecords : [],
readResult.skippedRecords
),
skippedRecords,
prefixHash: readResult.prefixHash ?? null
}
}
Expand Down
Loading