Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel

## Unreleased

- App: opening an Approvals task whose conversation is archived, deleted or not loaded yet shows a clear "Conversation unavailable" view instead of a blank Thread window (#3393, fixes #3387). Thanks to @sx4im.

- CLI: `tensorfold launch <agent>` starts Claude Code, Codex, OpenCode or Hermes against the local server, with the API base URL and key set only in the agent's environment; no agent config or home-folder files change (#3248, fixes #3199).

- Nemotron 3.5 Super at TP=2 on CUDA: rank 1 gets one header a decode window and one exact-size message a layer, so it queues a window's layers with no host read between them (#2839).
Expand Down
9 changes: 7 additions & 2 deletions app/src/components/CommandCentre.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ import {
computeCommandStatusSummary,
disclosureDefaultOpen,
summaryDefaultExpanded,
ticketReviewThreadId,
worstTone,
type ApprovalRow,
type AttentionRow,
Expand Down Expand Up @@ -550,6 +551,10 @@ export function CommandCentre() {
}
}
for (const ticket of tickets.filter((t) => t.status === 'review' || t.status === 'needs_clarification')) {
// [Open] only when the ticket's thread is actually loaded: a ticket keeps
// its threadId after its thread is archived or deleted, and opening the
// bare id renders a blank Thread view (#3387).
const openableThreadId = ticketReviewThreadId(ticket, threads)
rows.push({
id: `ticket-review:${ticket.id}`,
icon: ticket.status === 'review' ? 'check' : 'warning',
Expand All @@ -560,9 +565,9 @@ export function CommandCentre() {
tone: ticket.status === 'needs_clarification' ? 'high' : 'good',
createdAt: ticket.updatedAt,
primaryLabel: ticket.status === 'review' ? 'Complete' : 'Mark ready',
secondaryLabel: ticket.threadId ? 'Open' : undefined,
secondaryLabel: openableThreadId ? 'Open' : undefined,
onPrimary: () => void updateTicket(ticket.id, { status: ticket.status === 'review' ? 'completed' : 'ready' }),
onSecondary: ticket.threadId ? () => openThread(ticket.threadId!) : undefined,
onSecondary: openableThreadId ? () => openThread(openableThreadId) : undefined,
})
}
return rows.sort(sortRows).slice(0, 8)
Expand Down
19 changes: 18 additions & 1 deletion app/src/components/Thread.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,24 @@ export function ThreadView({ threadId, simpleLayout = false }: { threadId: strin
followRef.current = el.scrollHeight - el.scrollTop - el.clientHeight < 120
}

if (!thread) return null
if (!thread) {
// A thread id with no loaded thread used to render a blank window: every
// [Open] path navigates by id alone, and a ticket keeps its threadId after
// its thread is archived or deleted (#3387). Say so instead of nothing.
return (
<div className="flex h-full flex-col items-center justify-center gap-3 px-6 text-center">
<h1 className="text-[16px] font-medium text-ink">{tx("Conversation unavailable")}</h1>
<p className="max-w-[420px] text-[13px] leading-relaxed text-ink-2">{tx("This conversation was archived or deleted, or it has not loaded yet.")}</p>
<button
type="button"
className="rounded-lg bg-accent px-3 py-1.5 text-[13px] font-medium text-accent-ink transition-colors hover:bg-accent-strong focus-visible:outline-2 focus-visible:outline-accent"
onClick={() => useStore.getState().setView({ name: 'home' })}
>
{tx("Back to Home")}
</button>
</div>
)
}
const renderTimelineItem = (item: TimelineItem, turn: TurnSummary) => {
if (item.kind === 'user') return <SentUserMessage thread={thread} item={item} busy={busy} onQuote={!thread.orchestratorHostId ? selection => { void requestMessageQuote({ threadId: thread.id, itemId: item.id, ...(selection ? { selection } : {}) }) } : undefined} />
if (item.kind === 'cue') return <CueBubble text={item.text || ''} state={item.state} />
Expand Down
10 changes: 10 additions & 0 deletions app/src/components/command-centre/model.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import assert from 'node:assert/strict'
import { ticketReviewThreadId } from './model'

const threads: any = [{ id: 'thread-1' }, { id: 'thread-2' }]
assert.equal(ticketReviewThreadId({ threadId: 'thread-1' }, threads), 'thread-1')
assert.equal(ticketReviewThreadId({ threadId: 'missing' }, threads), null, 'a ticket whose thread was archived or deleted has no Open target')
assert.equal(ticketReviewThreadId({ threadId: null }, threads), null)
assert.equal(ticketReviewThreadId({}, threads), null)
assert.equal(ticketReviewThreadId({ threadId: 'thread-2' }, []), null, 'no loaded threads means no Open target')
console.log('ticket-review Open target passed')
17 changes: 17 additions & 0 deletions app/src/components/command-centre/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import type {
Room,
Settings,
Thread,
Ticket,
TokenUsageSnapshot,
} from '../../lib/types'

Expand Down Expand Up @@ -311,6 +312,22 @@ export function approvalsShouldStick(pendingCount: number): boolean {
return pendingCount > 0
}

/**
* The thread an [Open] button on a ticket-review approval row may open: the
* ticket's thread, but only when that thread is actually loaded in the store.
* A ticket keeps its threadId after its thread is archived, deleted, or is
* still mirroring from a remote host, and opening the bare id then renders a
* blank Thread view (ThreadView returns null for a missing thread, #3387).
* Extracted so the semantics are testable directly.
*/
export function ticketReviewThreadId(
ticket: { threadId?: Ticket['threadId'] },
threads: ReadonlyArray<Pick<Thread, 'id'>>,
): string | null {
if (!ticket.threadId) return null
return threads.some((thread) => thread.id === ticket.threadId) ? ticket.threadId : null
}

/**
* Statuses a LiveJob row can carry that mean the underlying work has stopped making progress
* (terminal failure or an operator-initiated pause), even though it's still shown in the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"Outline item opened.": "Se ha abierto el elemento del esquema.",
"Quoted message opened.": "Se ha abierto el mensaje citado.",
"Search match opened.": "Se ha abierto el resultado de búsqueda."
"Search match opened.": "Se ha abierto el resultado de búsqueda.",
"Conversation unavailable": "Conversación no disponible",
"This conversation was archived or deleted, or it has not loaded yet.": "Esta conversación se archivó o se eliminó, o aún no se ha cargado.",
"Back to Home": "Volver a Inicio"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"Outline item opened.": "रूपरेखा की प्रविष्टि खोल दी गई है।",
"Quoted message opened.": "उद्धृत संदेश खोल दिया गया है।",
"Search match opened.": "खोज का परिणाम खोल दिया गया है।"
"Search match opened.": "खोज का परिणाम खोल दिया गया है।",
"Conversation unavailable": "बातचीत उपलब्ध नहीं है",
"This conversation was archived or deleted, or it has not loaded yet.": "यह बातचीत संग्रहित या हटाई गई है, या अभी लोड नहीं हुई है।",
"Back to Home": "होम पर वापस"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"Outline item opened.": "Entri kerangka percakapan telah dibuka.",
"Quoted message opened.": "Pesan yang dikutip telah dibuka.",
"Search match opened.": "Hasil pencarian telah dibuka."
"Search match opened.": "Hasil pencarian telah dibuka.",
"Conversation unavailable": "Percakapan tidak tersedia",
"This conversation was archived or deleted, or it has not loaded yet.": "Percakapan ini telah diarsipkan atau dihapus, atau belum dimuat.",
"Back to Home": "Kembali ke Beranda"
}
48 changes: 24 additions & 24 deletions app/src/lib/preferences/packs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,63 +375,63 @@ export const languagePacks: Readonly<Record<string, Readonly<Record<string, stri
})
export const languagePackCoverage: Readonly<Record<string, { present: number; total: number; complete: boolean }>> = Object.freeze({
"es": {
"present": 4945,
"total": 4945,
"present": 4948,
"total": 4948,
"complete": true
},
"hi": {
"present": 4945,
"total": 4945,
"present": 4948,
"total": 4948,
"complete": true
},
"id": {
"present": 4945,
"total": 4945,
"present": 4948,
"total": 4948,
"complete": true
},
"ja": {
"present": 4945,
"total": 4945,
"present": 4948,
"total": 4948,
"complete": true
},
"ko": {
"present": 4945,
"total": 4945,
"present": 4948,
"total": 4948,
"complete": true
},
"la": {
"present": 4945,
"total": 4945,
"present": 4948,
"total": 4948,
"complete": true
},
"pl": {
"present": 4945,
"total": 4945,
"present": 4948,
"total": 4948,
"complete": true
},
"ru": {
"present": 4945,
"total": 4945,
"present": 4948,
"total": 4948,
"complete": true
},
"th": {
"present": 4945,
"total": 4945,
"present": 4948,
"total": 4948,
"complete": true
},
"vi": {
"present": 4945,
"total": 4945,
"present": 4948,
"total": 4948,
"complete": true
},
"zh-Hans": {
"present": 4945,
"total": 4945,
"present": 4948,
"total": 4948,
"complete": true
},
"zh-Hant": {
"present": 4945,
"total": 4945,
"present": 4948,
"total": 4948,
"complete": true
}
})
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"Outline item opened.": "アウトライン項目を開きました。",
"Quoted message opened.": "引用元のメッセージを開きました。",
"Search match opened.": "検索結果を開きました。"
"Search match opened.": "検索結果を開きました。",
"Conversation unavailable": "会話を利用できません",
"This conversation was archived or deleted, or it has not loaded yet.": "この会話はアーカイブまたは削除されたか、まだ読み込まれていません。",
"Back to Home": "ホームに戻る"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"Outline item opened.": "개요 항목을 열었습니다.",
"Quoted message opened.": "인용한 메시지를 열었습니다.",
"Search match opened.": "검색 결과를 열었습니다."
"Search match opened.": "검색 결과를 열었습니다.",
"Conversation unavailable": "대화를 사용할 수 없습니다",
"This conversation was archived or deleted, or it has not loaded yet.": "이 대화는 보관되거나 삭제되었거나, 아직 로드되지 않았습니다.",
"Back to Home": "홈으로 돌아가기"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"Outline item opened.": "Pars conspectus aperta est.",
"Quoted message opened.": "Nuntius citatus apertus est.",
"Search match opened.": "Eventus quaestionis apertus est."
"Search match opened.": "Eventus quaestionis apertus est.",
"Conversation unavailable": "Colloquium deest",
"This conversation was archived or deleted, or it has not loaded yet.": "Hoc colloquium vel archivatum vel deletum est, vel nondum oneratum est.",
"Back to Home": "Ad domum redi"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"Outline item opened.": "Otwarto element zarysu rozmowy.",
"Quoted message opened.": "Otwarto cytowaną wiadomość.",
"Search match opened.": "Otwarto wynik wyszukiwania."
"Search match opened.": "Otwarto wynik wyszukiwania.",
"Conversation unavailable": "Rozmowa niedostępna",
"This conversation was archived or deleted, or it has not loaded yet.": "Ta rozmowa została zarchiwizowana lub usunięta albo nie została jeszcze wczytana.",
"Back to Home": "Wróć na stronę główną"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"Outline item opened.": "Пункт плана беседы открыт.",
"Quoted message opened.": "Цитируемое сообщение открыто.",
"Search match opened.": "Результат поиска открыт."
"Search match opened.": "Результат поиска открыт.",
"Conversation unavailable": "Разговор недоступен",
"This conversation was archived or deleted, or it has not loaded yet.": "Этот разговор был архивирован или удалён, либо ещё не загружен.",
"Back to Home": "Назад на главную"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"Outline item opened.": "เปิดรายการในโครงร่างแล้ว",
"Quoted message opened.": "เปิดข้อความที่อ้างอิงแล้ว",
"Search match opened.": "เปิดผลการค้นหาแล้ว"
"Search match opened.": "เปิดผลการค้นหาแล้ว",
"Conversation unavailable": "การสนทนาใช้ไม่ได้",
"This conversation was archived or deleted, or it has not loaded yet.": "การสนทนานี้ถูกเก็บถาวรหรือลบไปแล้ว หรือยังไม่ได้โหลด",
"Back to Home": "กลับไปหน้าหลัก"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"Outline item opened.": "Đã mở mục trong dàn ý.",
"Quoted message opened.": "Đã mở tin nhắn được trích dẫn.",
"Search match opened.": "Đã mở kết quả tìm kiếm."
"Search match opened.": "Đã mở kết quả tìm kiếm.",
"Conversation unavailable": "Cuộc trò chuyện không khả dụng",
"This conversation was archived or deleted, or it has not loaded yet.": "Cuộc trò chuyện này đã được lưu trữ hoặc xóa, hoặc chưa được tải.",
"Back to Home": "Về Trang chủ"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"Outline item opened.": "已打开大纲条目。",
"Quoted message opened.": "已打开引用来源消息。",
"Search match opened.": "已打开搜索结果。"
"Search match opened.": "已打开搜索结果。",
"Conversation unavailable": "对话不可用",
"This conversation was archived or deleted, or it has not loaded yet.": "此对话已归档或删除,或尚未加载。",
"Back to Home": "返回主页"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"Outline item opened.": "已開啟大綱條目。",
"Quoted message opened.": "已開啟引用來源訊息。",
"Search match opened.": "已開啟搜尋結果。"
"Search match opened.": "已開啟搜尋結果。",
"Conversation unavailable": "對話無法使用",
"This conversation was archived or deleted, or it has not loaded yet.": "此對話已歸檔或刪除,或尚未載入。",
"Back to Home": "返回主頁"
}
5 changes: 4 additions & 1 deletion app/src/lib/preferences/sources/018.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@
"Where Hugging Face caches downloads. TensorFold keeps its own model folders in Settings → Model folders.",
"Engine knob: append per-request records to a file for diagnostics.",
"Set 1 to hide the engine live text display in its terminal; the served model is unchanged.",
"Engine knob: mix a salt into request seeds."
"Engine knob: mix a salt into request seeds.",
"Conversation unavailable",
"This conversation was archived or deleted, or it has not loaded yet.",
"Back to Home"
]
Loading