refactor(ui): replace middle-dot separators with clearer hierarchy (#6087)

* refactor(ui): replace middle-dot separators with clearer hierarchy

* refactor(ui): use layout instead of punctuation separators
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-07 15:19:55 +08:00
1 parent d6ddceed99
commit 7cb396788c
82 files changed
+433 -462

No files matched your search

+13 -4
View File
@@ -850,11 +850,20 @@ class SlackChannel(BaseChannel):
code_blocks.append(m.group(0))
return f"\x00CB{len(code_blocks) - 1}\x00"
tables: list[str] = []
def _save_table(m: re.Match[str]) -> str:
tables.append(cls._convert_table(m))
return f"\ue000TB{len(tables) - 1}\ue000"
text = cls._CODE_FENCE_RE.sub(_save_fence, text)
text = cls._TABLE_RE.sub(cls._convert_table, text)
text = cls._TABLE_RE.sub(_save_table, text)
for i, block in enumerate(code_blocks):
text = text.replace(f"\x00CB{i}\x00", block)
return cls._fixup_mrkdwn(slackify_markdown(text)).rstrip("\n")
text = slackify_markdown(text)
for i, table in enumerate(tables):
text = text.replace(f"\ue000TB{i}\ue000", table)
return cls._fixup_mrkdwn(text).rstrip("\n")
@classmethod
def _fixup_mrkdwn(cls, text: str) -> str:
@@ -892,5 +901,5 @@ class SlackChannel(BaseChannel):
cells = (cells + [""] * len(headers))[: len(headers)]
parts = [f"**{headers[i]}**: {cells[i]}" for i in range(len(headers)) if cells[i]]
if parts:
rows.append(" · ".join(parts))
return "\n".join(rows)
rows.append(slackify_markdown("\n".join(parts)).rstrip("\n"))
return "\n\n".join(rows)
@@ -863,10 +863,10 @@ def test_to_mrkdwn_keeps_fenced_markdown_tables_intact() -> None:
def test_to_mrkdwn_still_converts_unfenced_markdown_tables() -> None:
out = SlackChannel._to_mrkdwn("| a | b |\n| - | - |\n| 1 | 2 |")
out = SlackChannel._to_mrkdwn("| a | b |\n| - | - |\n| 1 | 2 |\n| 3 | 4 |")
assert "| a | b |" not in out
assert "a" in out and "1" in out and "b" in out and "2" in out
assert out.splitlines() == ["*a*: 1", "*b*: 2", "", "*a*: 3", "*b*: 4"]
# ── file download SSRF ─────────────────────────────────────────────
@@ -118,7 +118,7 @@ def _hosted_web_search_event(
if isinstance(raw_queries, list)
else []
)
query = " · ".join(queries)
query = "\n".join(queries)
if not query:
query = next(
(
+1 -1
View File
@@ -935,4 +935,4 @@ def _safe_output_tail(output: bytes | None) -> str:
return ""
text = _ANSI_RE.sub("", output.decode("utf-8", errors="replace"))
lines = [line.strip() for line in text.splitlines() if line.strip()]
return " · ".join(lines[-3:])[-600:]
return "\n".join(lines[-3:])[-600:]
+1 -1
View File
@@ -1683,7 +1683,7 @@ class TestConsumeSdkStream:
"call_id": "ws_1",
"name": "web_search",
"arguments": {
"query": "nanobot DeepSeek · nanobot latest release",
"query": "nanobot DeepSeek\nnanobot latest release",
},
"result": {
"status": "completed",
+1 -1
View File
@@ -48,7 +48,7 @@ is focused to attach an image from the system clipboard. Image bytes stay behind
deleting it removes its image.
While nanobot is working, the composer prompt becomes
`Enter send now · Tab send next`; narrow terminals shorten it to `Enter now · Tab next`.
`Enter send now Tab send next`; narrow terminals shorten it to `Enter now Tab next`.
The footer shows progress and elapsed time without repeating the latest tool activity already
visible in the transcript.
+24 -24
View File
@@ -548,7 +548,7 @@ export class NanobotTui {
}
const command = this.commandMenu.resolve(visibleContent)
if ((command || visibleContent.startsWith("!")) && this.draft.media(visibleContent).length) {
this.status.content = "Images cannot be used with commands · remove the image first"
this.status.content = "Remove the image before running a command."
return
}
if (command?.source === "tui") {
@@ -969,8 +969,8 @@ export class NanobotTui {
this.setActive(false)
this.recoveryNotice.show(state)
this.status.content = state.can_continue === false
? "Interrupted · dismiss to start a new message"
: "Interrupted · continue or dismiss"
? "Interrupted. Dismiss to start a new message."
: "Interrupted. Continue or dismiss."
this.composer.focus()
return
}
@@ -1072,7 +1072,7 @@ export class NanobotTui {
private applyStatus(status: ConnectionStatus, info?: ConnectionStatusInfo): void {
this.connectionMessage = connectionStatusText(status, info)
if (this.options.desktopGatewayId && status === "error") {
this.connectionMessage = "Desktop disconnected or incompatible · exit and run nanobot to reconnect"
this.connectionMessage = "Desktop disconnected or incompatible. Exit and run nanobot to reconnect."
}
if (status === "connected") {
this.ready = false
@@ -1100,14 +1100,14 @@ export class NanobotTui {
private renderConnectionMessage(): void {
this.status.content = this.unsentSubmit
? `Not sent · press Enter to retry when ready · ${this.connectionMessage}`
? `Not sent. ${this.connectionMessage} Press Enter to retry when ready.`
: this.connectionMessage
}
private markSubmitUnsent(sendFailed = false): void {
this.unsentSubmit = true
if (sendFailed) {
this.status.content = "Not sent · send failed; press Enter to retry when ready"
this.status.content = "Send failed. Press Enter to retry when ready."
return
}
this.renderConnectionMessage()
@@ -1140,14 +1140,14 @@ export class NanobotTui {
private renderActiveStatus(): void {
if (this.sessionLoading || this.sessionMenu.visible) return
if (this.retryStatus) {
const navigation = this.transcriptNavigation.awayFromBottom ? " · Ctrl+End latest" : ""
const queued = this.promptQueue.length ? ` · ${this.promptQueue.length} queued` : ""
const navigation = this.transcriptNavigation.awayFromBottom ? " Ctrl+End latest" : ""
const queued = this.promptQueue.length ? ` ${this.promptQueue.length} queued` : ""
this.status.content = `${retryStatusLine(this.retryStatus)}${queued}${navigation}`
return
}
const elapsed = formatElapsed(Date.now() - this.activeStartedAt)
const navigation = this.transcriptNavigation.awayFromBottom ? " · Ctrl+End latest" : ""
const queued = this.promptQueue.length ? ` · ${this.promptQueue.length} queued` : ""
const navigation = this.transcriptNavigation.awayFromBottom ? " Ctrl+End latest" : ""
const queued = this.promptQueue.length ? ` ${this.promptQueue.length} queued` : ""
this.status.content = shimmerStatus(
this.activeLabel,
` ${elapsed}${queued}${navigation}`,
@@ -1157,14 +1157,14 @@ export class NanobotTui {
}
private readyStatus(detail = this.readyDetail): string {
if (this.unsentSubmit) return "Not sent · press Enter to retry"
if (this.unsentSubmit) return "Not sent. Press Enter to retry."
if (this.transcriptNavigation.awayFromBottom) {
return this.transcriptNavigation.unseenOutput
? "New output · Ctrl+End latest"
: "History · Ctrl+End latest"
? "New output Ctrl+End latest"
: "History Ctrl+End latest"
}
if (detail) return `Ready · ${detail}`
return this.historyHasMore ? "Ready · PageUp for earlier history" : "Ready"
if (detail) return `Ready ${detail}`
return this.historyHasMore ? "Ready PageUp for earlier history" : "Ready"
}
private sendNextFollowUp(): void {
@@ -1211,7 +1211,7 @@ export class NanobotTui {
private canSendPrompt(prompt: QueuedPrompt): boolean {
if (this.draft.hasImageLabelConflict(this.composer.plainText)) {
this.status.content = "Duplicate image placeholder text · rename or remove it before sending"
this.status.content = "Duplicate image placeholder. Rename or remove it before sending."
return false
}
if (!this.hasPrompt(prompt)) return false
@@ -1232,11 +1232,11 @@ export class NanobotTui {
if (!this.activeTurn || !this.ready) return
const visibleContent = this.composer.plainText.trim()
if (this.draft.media(visibleContent).length) {
this.status.content = "Images cannot be queued · press Enter to send now"
this.status.content = "Images cannot be queued. Press Enter to send now."
return
}
if (this.commandMenu.resolve(visibleContent)?.source === "tui") {
this.status.content = "Local commands cannot be queued · press Enter to run"
this.status.content = "Local commands cannot be queued. Press Enter to run."
return
}
const content = this.draft.expand(visibleContent).trim()
@@ -1916,7 +1916,7 @@ export class NanobotTui {
return
}
this.composer.insertText(insertion.text)
this.status.content = `Pasted ${insertion.description} · review before sending`
this.status.content = `Pasted ${insertion.description}. Review before sending.`
} catch (error) {
if (
this.quitting
@@ -1940,7 +1940,7 @@ export class NanobotTui {
if (!insertion.text) return
this.composer.insertText(insertion.text)
if (insertion.compacted) {
this.status.content = `Pasted ${insertion.description} · review before sending`
this.status.content = `Pasted ${insertion.description}. Review before sending.`
}
}
@@ -2068,7 +2068,7 @@ export class NanobotTui {
this.ready = false
this.clearPromptQueue()
this.sessionMetadataId += 1
this.sessionTitle = `Fork · ${preview.slice(0, 48)}`
this.sessionTitle = `Fork: ${preview.slice(0, 48)}`
this.host.reportTitle(preview)
this.contextTokens = null
this.lastUsage = null
@@ -2381,7 +2381,7 @@ export class NanobotTui {
this.usagePanel.show(snapshot)
} catch {
if (!current() || this.usageRefreshPending) return
this.usagePanel.showMessage("Usage unavailable · reopen /usage to retry")
this.usagePanel.showMessage("Usage unavailable. Reopen /usage to retry.")
} finally {
// A dismissed request must not clear a reopened panel's request or queued refresh.
if (request === this.usageRequest) {
@@ -2411,7 +2411,7 @@ export class NanobotTui {
this.apiReauthenticator,
)
if (!context) {
this.status.content = "Context unavailable · new session or older gateway"
this.status.content = "Context unavailable for this session or gateway."
return
}
this.contextTokens = context.estimatedSessionTokens
@@ -2510,7 +2510,7 @@ export class NanobotTui {
this.historyBeforeCursor = history.beforeCursor
this.historyHasMore = history.hasMoreBefore
this.status.content = history.hasMoreBefore
? `${history.messages.length} earlier messages · PageUp for more`
? `${history.messages.length} earlier messages PageUp for more`
: "Start of session"
} catch (error) {
if (hydrationId !== this.hydrationId) return
+3 -3
View File
@@ -371,7 +371,7 @@ describe("NanobotTui composer", () => {
setup.mockInput.pressKey("v", { ctrl: true })
await waitUntil(() => ui.composer.plainText === "/model [Image #1] ")
ui.composer.submit()
await waitUntil(() => ui.status.plainText.includes("Images cannot be used with commands"))
await waitUntil(() => ui.status.plainText.includes("Remove the image before running a command."))
expect(sent).toEqual([])
expect(ui.composer.plainText).toBe("/model [Image #1] ")
@@ -485,7 +485,7 @@ describe("NanobotTui composer", () => {
ui.composer.setText("first")
ui.composer.submit()
await waitUntil(() => sent.length === 1)
expect(ui.composer.placeholder).toBe("Enter send now · Tab send next")
expect(ui.composer.placeholder).toBe("Enter send now Tab send next")
ui.composer.setText("one more detail")
await setup.flush()
@@ -495,7 +495,7 @@ describe("NanobotTui composer", () => {
ui.composer.submit()
await waitUntil(() => sent.length === 2)
expect(ui.status.plainText).not.toContain("Steering")
expect(ui.composer.placeholder).toBe("Enter send now · Tab send next")
expect(ui.composer.placeholder).toBe("Enter send now Tab send next")
expect(sentOptions[1]).toEqual({
cliApps: [{ name: "github" }],
mcpPresets: [],
+1 -1
View File
@@ -75,7 +75,7 @@ describe("NanobotTui with a Herdr pane title reporter", () => {
expect(activeFrame).toContain("default ▾")
expect(occurrences(activeFrame, "› Ship the Herdr integration")).toBe(1)
expect(occurrences(activeFrame, "app.ts")).toBe(1)
expect(ui.composer.placeholder).toBe("Enter send now · Tab send next")
expect(ui.composer.placeholder).toBe("Enter send now Tab send next")
expect(ui.composerFrame.height).toBe(3)
expect(titles).toEqual(["Ship the Herdr integration"])
+5 -5
View File
@@ -103,7 +103,7 @@ describe("NanobotTui layout and themes", () => {
expect(frame).toContain("✓ Read config.json")
expect(frame).not.toContain("› Read")
expect(frame).not.toContain("private chain of thought")
expect(frame).toContain("Ready · 1.2s")
expect(frame).toContain("Ready 1.2s")
})
test("keeps model and access details in the composer controls only", async () => {
@@ -191,9 +191,9 @@ describe("NanobotTui layout and themes", () => {
expect(frame).not.toContain("Steer this turn…")
expect(frame).not.toContain("Ask a follow-up…")
if (width >= 40 && height >= 9) {
expect(occurrences(frame, "Enter send now · Tab send next")).toBe(1)
expect(occurrences(frame, "Enter send now Tab send next")).toBe(1)
} else if (width >= 28 && height >= 9) {
expect(occurrences(frame, "Enter now · Tab next")).toBe(1)
expect(occurrences(frame, "Enter now Tab next")).toBe(1)
}
expect(occurrences(frame, "default ▾")).toBe(height >= 14 ? 1 : 0)
}
@@ -616,8 +616,8 @@ describe("NanobotTui layout and themes", () => {
})
await setup.flush()
const footer = setup.captureCharFrame().split("\n").find((line) => line.includes("Ready · 1.7s")) || ""
expect(footer).toContain("Ready · 1.7s")
const footer = setup.captureCharFrame().split("\n").find((line) => line.includes("Ready 1.7s")) || ""
expect(footer).toContain("Ready 1.7s")
expect(footer).toContain("11% context")
})
+2 -2
View File
@@ -23,8 +23,8 @@ import type { UsagePanel } from "../views/usage-panel"
import type { Palette } from "./theme"
export const COMPOSER_PLACEHOLDER = "Ask nanobot anything"
export const ACTIVE_COMPOSER_PLACEHOLDER = "Enter send now · Tab send next"
export const COMPACT_ACTIVE_COMPOSER_PLACEHOLDER = "Enter now · Tab next"
export const ACTIVE_COMPOSER_PLACEHOLDER = "Enter send now Tab send next"
export const COMPACT_ACTIVE_COMPOSER_PLACEHOLDER = "Enter now Tab next"
const TRANSCRIPT_EDGE_INSET = 1
const TRANSCRIPT_TEXT_INSET = TRANSCRIPT_EDGE_INSET + 2
+4 -3
View File
@@ -114,7 +114,7 @@ describe("NanobotTui lifecycle", () => {
attempt: 9,
elapsedMs: 3_800,
})
expect(ui.status.plainText).toBe("Nanobot unavailable · restart nanobot")
expect(ui.status.plainText).toBe("Nanobot unavailable. Restart nanobot.")
expect(ui.status.plainText).not.toContain("gateway")
expect(ui.status.plainText).not.toContain("127.0.0.1")
expect(ui.status.plainText).not.toContain("HTTP")
@@ -328,7 +328,8 @@ describe("NanobotTui lifecycle", () => {
expect(sent).toEqual([])
expect(composer.plainText).toBe("sent during reconnect")
expect(ui.status.plainText).toContain("Not sent · press Enter to retry when ready")
expect(ui.status.plainText).toContain("Not sent.")
expect(ui.status.plainText).toContain("Press Enter to retry when ready.")
resolveReconnect(new Response(JSON.stringify({
schemaVersion: 3, projection: "events",
@@ -336,7 +337,7 @@ describe("NanobotTui lifecycle", () => {
page: { has_more_before: false },
})))
await waitUntil(() => ui.ready)
expect(ui.status.plainText).toBe("Not sent · press Enter to retry")
expect(ui.status.plainText).toBe("Not sent. Press Enter to retry.")
composer.submit()
await waitUntil(() => sent.length === 1)
await setup.flush()
+7 -7
View File
@@ -628,7 +628,7 @@ describe("NanobotTui session navigation", () => {
await setup.renderOnce()
expect(setup.captureCharFrame()).toContain("⚠ Task interrupted")
expect(setup.captureCharFrame()).toContain("Tools will not replay automatically")
expect(ui.status.plainText).toContain("continue or dismiss")
expect(ui.status.plainText).toContain("Continue or dismiss.")
expect(ui.activeTurn).toBe(false)
expect(ui.composer.focused).toBe(true)
@@ -675,7 +675,7 @@ describe("NanobotTui session navigation", () => {
const unavailableFrame = setup.captureCharFrame()
expect(unavailableFrame).toContain("can’t be resumed safely")
expect(unavailableFrame).not.toContain("Continue")
expect(ui.status.plainText).toContain("dismiss to start a new message")
expect(ui.status.plainText).toContain("Dismiss to start a new message.")
app.accept({
event: "recovery_state",
@@ -886,7 +886,7 @@ describe("NanobotTui session navigation", () => {
expect(ui.runtimeControls.contextText.plainText).toContain("~2.2k ctx")
const frame = setup.captureCharFrame()
expect(frame).toContain("~2.2k tokens · 10 replay · 16 archived")
expect(frame).toContain("~2.2k tokens 10 replay 16 archived")
expect(frame).toContain("The earlier turns agreed on a release plan.")
expect(frame).not.toContain("Agent context")
expect(frame).not.toContain("summary active")
@@ -966,8 +966,8 @@ describe("NanobotTui session navigation", () => {
await waitUntil(() => ui.diffViewer.visible)
await setup.flush()
let frame = setup.captureCharFrame()
expect(frame).toContain("Diff · Last turn · 2 changes · +3 -1")
expect(frame).toContain("1/2 · src/first.ts · +2 -1")
expect(frame).toContain("Last turn changes 2 changes +3 -1")
expect(frame).toContain("1/2 src/first.ts +2 -1")
expect(frame).toContain("const newValue = 2")
expect(frame).toContain("Diff truncated by the gateway")
expect(frame).not.toContain("Ask nanobot anything")
@@ -975,7 +975,7 @@ describe("NanobotTui session navigation", () => {
setup.mockInput.pressArrow("right")
await setup.flush()
frame = setup.captureCharFrame()
expect(frame).toContain("2/2 · src/second.py · +1 -0")
expect(frame).toContain("2/2 src/second.py +1 -0")
expect(frame).toContain("print('hello')")
setup.renderer.emit(CliRenderEvents.THEME_MODE, "light")
@@ -985,7 +985,7 @@ describe("NanobotTui session navigation", () => {
setup.resize(52, 18)
await setup.renderOnce()
expect(setup.captureCharFrame()).toContain("←/→ file · pgup/pgdn · esc")
expect(setup.captureCharFrame()).toContain("←/→ file pgup/pgdn esc")
setup.mockInput.pressEscape()
await waitUntil(() => !ui.diffViewer.visible)
+3 -3
View File
@@ -17,7 +17,7 @@ export function connectionStatusText(
? "Still getting ready…"
: "Nanobot is taking longer to respond…"
}
if (status === "error") return "Nanobot unavailable · restart nanobot"
if (status === "error") return "Nanobot unavailable. Restart nanobot."
return "Session ended"
}
@@ -47,7 +47,7 @@ export interface RenderedRetryStatus extends RetryStatus {
export function retryStatusLine(status: RenderedRetryStatus, nowMs = Date.now()): string {
const label = retryFailureLabel(status.error_kind)
if (status.state === "exhausted") return `${label} · ending turn`
if (status.state === "exhausted") return `${label}. Ending turn.`
if (status.state === "recovered") return "Connection restored"
if (status.state === "cleared") return "Retry status cleared"
const remaining = Math.max(
@@ -57,7 +57,7 @@ export function retryStatusLine(status: RenderedRetryStatus, nowMs = Date.now())
const attempt = status.max_attempts
? `${status.attempt}/${status.max_attempts}`
: String(status.attempt)
return `${label} · retrying in ${remaining}s · attempt ${attempt}`
return `${label}. Retrying in ${remaining}s (attempt ${attempt}).`
}
export function sessionExitMessage(chatId: string): string {
+4 -4
View File
@@ -206,7 +206,7 @@ describe("NanobotTui transcript", () => {
}
const status = ui.status
expect(status.plainText).toMatch(/^Thinking\s+0s/u)
expect(ui.composer.placeholder).toBe("Enter send now · Tab send next")
expect(ui.composer.placeholder).toBe("Enter send now Tab send next")
expect(ui.composerFrame.height).toBe(3)
const shimmerColors = new Set(
status.content.chunks
@@ -260,7 +260,7 @@ describe("NanobotTui transcript", () => {
retry_after_s: 5,
})
expect(ui.status.plainText).toMatch(
/^Could not connect to the model provider · retrying in [45]s · attempt 1\/4/u,
/^Could not connect to the model provider\. Retrying in [45]s \(attempt 1\/4\)\./u,
)
app.accept({
@@ -325,7 +325,7 @@ describe("NanobotTui transcript", () => {
await setup.renderOnce()
let frame = setup.captureCharFrame()
expect(frame).toContain("7 earlier steps · Ctrl+O expand")
expect(frame).toContain("7 earlier steps Ctrl+O expand")
expect(frame).not.toContain("tool_0")
expect(frame).toContain("tool_7")
expect(frame).toContain("tool_9")
@@ -381,7 +381,7 @@ describe("NanobotTui transcript", () => {
await setup.renderOnce()
let frame = setup.captureCharFrame()
expect(frame).toContain("6 steps · Ctrl+O expand")
expect(frame).toContain("6 steps Ctrl+O expand")
expect(frame).toContain("✓ Read 6 files")
expect(frame).not.toContain("src/file-0.ts")
+4 -4
View File
@@ -90,12 +90,12 @@ describe("TUI /usage", () => {
await setup!.flush()
let frame = setup!.captureCharFrame()
expect(frame).toContain("Context 9k / 262k")
expect(frame).toContain("Round 2/2 · In 9,000 · Out 200")
expect(frame).toContain("Round 2/2 In 9,000 Out 200")
expect(frame).toContain("←→ round")
expect(sent).toEqual([])
setup!.mockInput.pressArrow("left")
await setup!.renderOnce()
expect(setup!.captureCharFrame()).toContain("Round 1/2 · In 3,000 · Out 100")
expect(setup!.captureCharFrame()).toContain("Round 1/2 In 3,000 Out 100")
expect(setup!.captureCharFrame()).toContain("Cache 0%")
for (const [width, height] of [[56, 18], [40, 10], [80, 30]] as const) {
setup!.resize(width, height)
@@ -140,7 +140,7 @@ describe("TUI /usage", () => {
await waitUntil(() => requests === 2)
await setup!.flush()
const frame = setup!.captureCharFrame()
expect(frame).toContain("Round 2/2 · In 12,000 · Out 200")
expect(frame).toContain("Round 2/2 In 12,000 Out 200")
expect(frame).not.toContain("Round 4/4")
expect(sent).toEqual([])
})
@@ -287,7 +287,7 @@ describe("TUI /usage", () => {
await close(ui)
fail = true
await open(ui)
expect(setup!.captureCharFrame()).toContain("Usage unavailable · reopen /usage to retry")
expect(setup!.captureCharFrame()).toContain("Usage unavailable. Reopen /usage to retry.")
await setup!.mockInput.typeText("hello")
expect(ui.usagePanel.visible).toBe(false)
expect(ui.composer.plainText).toBe("hello")
+1 -1
View File
@@ -70,7 +70,7 @@ export class QueuePreview {
this.header.content = new StyledText([
chunk("Queued next", this.theme.accent, true),
chunk(` ${messages.length}`, this.theme.faint),
chunk(` · ${this.editKey} edit last`, this.theme.faint),
chunk(` ${this.editKey} edit last`, this.theme.faint),
])
this.rows.forEach((row, index) => {
const message = visible[index]
+1 -1
View File
@@ -57,7 +57,7 @@ export class MentionMenu {
this.picker = new PickerMenu(renderer, theme, {
id: "nanobot-tui-mention-menu",
searchText: (item) => `${item.name} ${item.displayName} ${item.description}`,
render: (item) => `${item.displayName} @${item.name} · ${item.kind}`,
render: (item) => `${item.displayName} @${item.name} ${item.kind}`,
emptyText: "No matching sessions or tools",
})
this.root = this.picker.root
+2 -2
View File
@@ -189,7 +189,7 @@ describe("SessionMenu", () => {
menu.open(scoped, "one", 6)
await setup.renderOnce()
expect(setup.captureCharFrame()).not.toContain("nanobot · Codex")
expect(setup.captureCharFrame()).not.toContain("nanobot Codex")
menu.open([
scoped[0]!,
@@ -204,7 +204,7 @@ describe("SessionMenu", () => {
], "one", 6)
await setup.renderOnce()
const frame = setup.captureCharFrame()
expect(frame).toContain("nanobot · Codex")
expect(frame).toContain("nanobot Codex")
expect(frame).toContain("desktop")
menu.update("desktop", 6)
+1 -1
View File
@@ -64,7 +64,7 @@ export class SessionMenu {
this.modelOverride(session),
]
.filter(Boolean)
.join(" · ")
.join(" ")
const marker = this.marker(session)
const foreground = this.interrupted(session)
? this.theme.warning || this.theme.accent || this.theme.text
+4 -4
View File
@@ -321,7 +321,7 @@ export class Transcript {
notice(content: string, error = false): void {
this.noteOutput()
this.finishActivity()
this.writeRole(error ? "×" : "·", content, error ? "error" : "muted")
this.writeRole(error ? "×" : "", content, error ? "error" : "muted")
}
compaction(compaction: ContextCompaction, index?: number): boolean {
@@ -348,7 +348,7 @@ export class Transcript {
: compaction.phase === "succeeded"
? " ✓ Conversation compacted"
: compaction.phase === "cancelled"
? " · Conversation compaction cancelled"
? " Conversation compaction cancelled"
: " × Could not compact conversation"
entry.text.fg = compaction.phase === "failed" ? this.theme.error : this.theme.muted
return added
@@ -572,7 +572,7 @@ export class Transcript {
const hidden = activity.lines.length - visibleSteps
const disclosure = hidden > 0 ? `${hidden} earlier steps` : `${activity.lines.length} steps`
activity.text.content = [
` … ${disclosure} · Ctrl+O expand`,
` … ${disclosure} Ctrl+O expand`,
...visible.map((item) => item.text),
].join("\n")
}
@@ -757,7 +757,7 @@ export class Transcript {
function cleanProgress(value: string): string {
const text = value.trim().replace(/^\*\*(.*?)\*\*$/u, "$1").replace(/\s+/gu, " ")
return text ? ` · ${text}` : ""
return text ? ` ${text}` : ""
}
function activityPreview(lines: readonly string[]): ActivityPreviewItem[] {
+1 -1
View File
@@ -36,7 +36,7 @@ describe("ContextPanel", () => {
await setup.renderOnce()
const frame = setup.captureCharFrame()
expect(frame).toContain("~950 tokens · 8 replay · 0 archived")
expect(frame).toContain("~950 tokens 8 replay 0 archived")
expect(frame).not.toContain("Agent context")
expect(frame).not.toContain("no compacted summary")
})
+1 -1
View File
@@ -63,7 +63,7 @@ export class ContextPanel {
}
show(context: SessionContextSnapshot): void {
this.stats.content = `~${formatTokenCount(context.estimatedSessionTokens)} tokens · ${context.replayMessages} replay · ${context.archivedMessages} archived`
this.stats.content = `~${formatTokenCount(context.estimatedSessionTokens)} tokens ${context.replayMessages} replay ${context.archivedMessages} archived`
this.summary.content = context.archivedSummary ?? ""
this.root.visible = true
}
+9 -9
View File
@@ -124,7 +124,7 @@ export class DiffViewer {
})
this.header = new TextRenderable(renderer, {
id: "nanobot-tui-diff-header",
content: "Diff · Last turn",
content: "Last turn changes",
width: "100%",
height: 1,
flexShrink: 0,
@@ -160,7 +160,7 @@ export class DiffViewer {
hideScrollbars(this.scroll)
this.footer = new TextRenderable(renderer, {
id: "nanobot-tui-diff-footer",
content: "←/→ file · pgup/pgdn scroll · esc close",
content: "←/→ file pgup/pgdn scroll esc close",
width: "100%",
height: 1,
flexShrink: 0,
@@ -223,8 +223,8 @@ export class DiffViewer {
resize(width: number): void {
this.footer.content = width >= 58
? "←/→ file · pgup/pgdn scroll · home/end · esc close"
: "←/→ file · pgup/pgdn · esc"
? "←/→ file pgup/pgdn scroll home/end esc close"
: "←/→ file pgup/pgdn esc"
}
setTheme(theme: DiffViewerTheme): void {
@@ -256,8 +256,8 @@ export class DiffViewer {
const totalDeleted = this.items.reduce((sum, item) => sum + Math.max(0, item.edit.deleted || 0), 0)
const count = this.items.length
this.header.content = count
? `Diff · Last turn · ${count} ${count === 1 ? "change" : "changes"} · +${totalAdded} -${totalDeleted}`
: "Diff · Last turn"
? `Last turn changes ${count} ${count === 1 ? "change" : "changes"} +${totalAdded} -${totalDeleted}`
: "Last turn changes"
const item = this.items[this.selected]
if (!item) {
this.fileHeader.content = "No file changes in the last turn."
@@ -265,9 +265,9 @@ export class DiffViewer {
return
}
const edit = item.edit
const index = this.items.length > 1 ? `${this.selected + 1}/${this.items.length} · ` : ""
const state = edit.status === "editing" ? " · editing" : edit.status === "error" ? " · failed" : ""
this.fileHeader.content = `${index}${edit.path || "Unknown file"} · ${stat(edit)}${state}`
const index = this.items.length > 1 ? `${this.selected + 1}/${this.items.length} ` : ""
const state = edit.status === "editing" ? " editing" : edit.status === "error" ? " failed" : ""
this.fileHeader.content = `${index}${edit.path || "Unknown file"} ${stat(edit)}${state}`
const text = edit.diff?.format === "unified" ? edit.diff.text?.trimEnd() : ""
if (text) {
this.scroll.add(new DiffRenderable(this.renderer, {
+1 -1
View File
@@ -16,7 +16,7 @@ describe("footerHints", () => {
{ key: "ctrl+c", label: "stop", tone: "danger" },
], theme)
expect(result.chunks.map(({ text }) => text).join("")).toBe("enter steer · ctrl+c stop")
expect(result.chunks.map(({ text }) => text).join("")).toBe("enter steer ctrl+c stop")
expect(result.chunks[0]?.fg?.toInts().slice(0, 3)).toEqual([239, 142, 48])
expect(result.chunks[3]?.fg?.toInts().slice(0, 3)).toEqual([248, 113, 113])
})
+1 -1
View File
@@ -60,7 +60,7 @@ export function footerTelemetry(
export function footerHints(hints: readonly FooterHint[], theme: FooterHintTheme): StyledText {
const chunks: TextChunk[] = []
hints.forEach((hint, index) => {
if (index) chunks.push(chunk(" · ", theme.separator))
if (index) chunks.push(chunk(" ", theme.muted))
const color = hint.tone === "danger" ? theme.danger : theme.accent
chunks.push(chunk(hint.key, color, true))
chunks.push(chunk(` ${hint.label}`, theme.muted))
+6 -6
View File
@@ -35,9 +35,9 @@ describe("UsagePanel", () => {
const frame = setup.captureCharFrame()
expect(frame).toContain("Context 9k / 262k")
expect(frame).toContain("3%")
expect(frame).toContain("Input tokens · max 9k")
expect(frame).toContain("Round 3/3 · In 9,000 · Out 800")
expect(frame).toContain("Cache 67% · 1.5s · includes estimated usage")
expect(frame).toContain("Input tokens (max 9k)")
expect(frame).toContain("Round 3/3 In 9,000 Out 800")
expect(frame).toContain("Cache 67% 1.5s includes estimated usage")
expect(frame).toContain("Uncached")
expect(frame).toContain("Unknown cache")
expect(frame).toContain("███")
@@ -50,7 +50,7 @@ describe("UsagePanel", () => {
panel.move(-1)
panel.move(-1)
await setup.renderOnce()
expect(setup.captureCharFrame()).toContain("Round 1/3 · In 3,000 · Out 200")
expect(setup.captureCharFrame()).toContain("Round 1/3 In 3,000 Out 200")
expect(setup.captureCharFrame()).toContain("Cache ?")
})
@@ -189,7 +189,7 @@ describe("UsagePanel", () => {
const frame = setup.captureCharFrame()
expect(frame).toContain("Context 2k / 1k")
expect(frame).toContain("100%")
expect(frame).toContain("In 2,000 · Out ?")
expect(frame).toContain("In 2,000 Out ?")
expect(frame).toContain("Cache 100%")
})
@@ -235,7 +235,7 @@ describe("UsagePanel", () => {
panel.resize(80, 30)
panel.setTheme({ ...theme, text: "#18181B", border: "#D4D4D8" })
await setup.renderOnce()
expect(setup.captureCharFrame()).toContain("Round 3/3 · In 9,000 · Out 800")
expect(setup.captureCharFrame()).toContain("Round 3/3 In 9,000 Out 800")
panel.hide()
await setup.renderOnce()
expect(setup.captureCharFrame()).not.toContain("Context")
+4 -4
View File
@@ -148,7 +148,7 @@ export class UsagePanel {
if (!compact) line("")
const inputs = rounds.map((round) => round.prompt_tokens ?? 0)
const max = Math.max(1, ...inputs)
if (!tiny) heading(width < 48 ? "Rounds" : "Recent rounds", `Input tokens · max ${formatTokenCount(max)}`)
if (!tiny) heading(width < 48 ? "Rounds" : "Recent rounds", `Input tokens (max ${formatTokenCount(max)})`)
const chartHeight = Math.max(1, Math.min(6, this.height - 18))
const slot = Math.max(1, Math.floor(width / rounds.length))
const barWidth = Math.min(3, Math.max(1, slot - 1))
@@ -187,13 +187,13 @@ export class UsagePanel {
if (round && !tiny) {
const input = round.prompt_tokens ?? 0
const count = (value: number | undefined) => known(value) ? value.toLocaleString("en-US") : "?"
line(`${width < 48 ? "" : "Round "}${this.selected + 1}/${rounds.length} · In ${count(input)} · Out ${count(round.completion_tokens)}`)
line(`${width < 48 ? "" : "Round "}${this.selected + 1}/${rounds.length} In ${count(input)} Out ${count(round.completion_tokens)}`)
const cache = known(round.cached_tokens)
? `${Math.round(Math.min(input, round.cached_tokens) / input * 100)}%` : "?"
const time = known(round.generation_ms) ? ` · ${(round.generation_ms / 1000).toFixed(1)}s` : ""
const time = known(round.generation_ms) ? ` ${(round.generation_ms / 1000).toFixed(1)}s` : ""
if (!compact) {
const estimated = known(round.estimated_tokens) && round.estimated_tokens > 0
line(`Cache ${cache}${time}${estimated && width >= 48 ? " · includes estimated usage" : ""}`, theme.muted)
line(`Cache ${cache}${time}${estimated && width >= 48 ? " includes estimated usage" : ""}`, theme.muted)
if (estimated && width < 48) line("Includes estimated usage", theme.muted)
}
}
+1 -1
View File
@@ -1642,7 +1642,7 @@ function MoveToGroupSubmenu({
>
<span className="min-w-0 max-w-56 flex-1 truncate">{target.title}</span>
<span className="shrink-0 tabular-nums text-sidebar-muted-foreground">
· {target.paneCount}/{MAX_WORKBENCH_PANES}
{target.paneCount}/{MAX_WORKBENCH_PANES}
</span>
</DropdownMenuItem>
))}
-1
View File
@@ -81,7 +81,6 @@ export function DeleteConfirm({
<span className="truncate">
{formatAutomationSchedule(job, t, locale)}
</span>
<span aria-hidden>·</span>
<span className="truncate">{formatAutomationNextRun(job, t, locale)}</span>
</div>
</div>
+3 -2
View File
@@ -289,9 +289,10 @@ export function MessageBlockMenuActions({
{automationSourceLabel ? (
<span
data-automation-trigger
className="flex min-h-[var(--message-block-control-size)] items-center break-words"
className="flex min-h-[var(--message-block-control-size)] flex-wrap items-baseline gap-x-2 break-words"
>
{t("message.automationTriggered")} · {automationSourceLabel}
<span>{t("message.automationTriggered")}</span>{" "}
<span>{automationSourceLabel}</span>
</span>
) : null}
</div>
@@ -25,7 +25,7 @@ export function HostCompatibilityDialog({ profile, clientVersion, onClose }: {
<DialogContent className="remote-dialog max-w-md overflow-y-auto outline-none">
<DialogHeader className="pr-5 text-left">
<DialogTitle className="text-balance leading-snug">{t("remote.compatibility.title")}</DialogTitle>
<DialogDescription className="text-pretty [overflow-wrap:anywhere]">{displayedProfile?.name} · {displayedProfile?.host}</DialogDescription>
<DialogDescription className="text-pretty [overflow-wrap:anywhere]"><span className="block font-medium">{displayedProfile?.name}</span>{" "}<span className="block font-mono text-xs">{displayedProfile?.host}</span></DialogDescription>
</DialogHeader>
<SettingsGroup>
<dl className="space-y-3 px-4 py-3 text-[13px] leading-5">
+11 -6
View File
@@ -104,7 +104,7 @@ function HostMenuItems({ picker }: { picker: HostPicker }) {
{showLocal && !!profiles.length && <DropdownMenuSeparator />}
{profiles.map((profile) => <DropdownMenuItem key={profile.id} onSelect={() => picker.select(profile.id)} className="gap-2.5"
aria-label={`${profile.name} ${profile.host}`} aria-describedby={`host-state-${profile.id}`}
title={`${profile.name} · ${profile.host}`} aria-current={picker.currentId === profile.id || undefined}>
title={`${profile.name}\n${profile.host}`} aria-current={picker.currentId === profile.id || undefined}>
<Server className="h-4 w-4 shrink-0 text-muted-foreground" />
<span className="min-w-0 flex-1"><span className="block truncate">{profile.name}</span><span className="block truncate text-xs text-muted-foreground">{profile.host}</span></span>
<span id={`host-state-${profile.id}`}><HostConnectionStatus state={profile.state} compact /></span>
@@ -145,10 +145,9 @@ export function HostSwitcher({ collapsed = false, portalContainer }: { collapsed
// visible; progress belongs to the target's row and the accessible status.
const label = picker.name;
const currentLabel = failed ? shell?.offlineLabel || t("remote.offline") : t(`connection.${currentStatus}`);
const identity = picker.name === picker.hostname ? picker.name : `${picker.name} · ${picker.hostname}`;
const current = `${identity} · ${currentLabel}`;
const detail = pendingName ? `${current} · ${t("remote.preparing", { name: pendingName })}` : current;
const hint = picker.error ? `${detail} — ${picker.error}` : detail;
const identity = picker.name === picker.hostname ? picker.name : `${picker.name}, ${picker.hostname}`;
const current = `${identity}, ${currentLabel}`;
const detail = pendingName ? `${current}. ${t("remote.preparing", { name: pendingName })}` : current;
const button = <Button ref={buttonRef} variant="ghost" size="sm" aria-label={t("remote.switchHost")}
data-host-switcher className={cn("host-no-drag touch-target h-8 min-w-0 gap-2 rounded-xl px-2 text-xs font-normal text-sidebar-content/75 hover:text-sidebar-content",
collapsed ? "w-8 justify-center px-0" : "max-w-full flex-1 justify-start")}
@@ -168,7 +167,13 @@ export function HostSwitcher({ collapsed = false, portalContainer }: { collapsed
// The mobile sidebar already owns the modal lock; a nested lock can outlive it on navigation.
return <TooltipProvider><Tooltip>
{shell ? <DropdownMenu modal={!portalContainer}><DropdownMenuTrigger asChild>{trigger}</DropdownMenuTrigger><HostMenuContent picker={shell} portalContainer={portalContainer} /></DropdownMenu> : trigger}
<TooltipContent side="top">{hint}</TooltipContent>
<TooltipContent side="top" className="max-w-[min(24rem,calc(100vw-2rem))] space-y-1 break-words">
<p className="font-medium">{picker.name}</p>
{picker.hostname !== picker.name ? <p className="font-mono text-xs text-muted-foreground">{picker.hostname}</p> : null}
<p>{currentLabel}</p>
{pendingName ? <p>{t("remote.preparing", { name: pendingName })}</p> : null}
{picker.error ? <p className="text-destructive">{picker.error}</p> : null}
</TooltipContent>
</Tooltip></TooltipProvider>;
}
@@ -319,7 +319,7 @@ export function RemoteConnectionsPage({ mainNavigationExpanded = false, hostChro
}}>
{busy === profile.id ? <Loader2 className="h-[18px] w-[18px] shrink-0 animate-spin text-muted-foreground" /> : <Server className="h-[18px] w-[18px] shrink-0 text-muted-foreground" />}
<span className="min-w-0 flex-1"><span className="block truncate text-[14px] font-medium">{profile.name}</span><span className="mt-0.5 block truncate text-xs text-muted-foreground">{profile.host}</span>
{groups.some((other) => other.id !== groupId && other.profile.name === profile.name && other.profile.host === profile.host) && <span className="mt-0.5 block truncate text-xs text-muted-foreground" title={profile.config_path}>{profile.port ? `:${profile.port} · ` : ""}{profile.config_path}</span>}
{groups.some((other) => other.id !== groupId && other.profile.name === profile.name && other.profile.host === profile.host) && <span className="mt-0.5 block truncate text-xs text-muted-foreground" title={profile.config_path}>{profile.port ? <span className="mr-2">:{profile.port}</span> : null}{profile.config_path}</span>}
<span id={`${statusId}-${profile.id}`} className="mt-1 block"><HostConnectionStatus state={connections.hostStates[profile.id] || "closed"} /></span>
{profile.compatibility && profile.compatibility.status !== "compatible" && <span className="mt-1 block text-xs text-muted-foreground">
{t(`remote.compatibility.${profile.compatibility.status}`)}
@@ -134,7 +134,7 @@ export function RemoteInstances({ children }: { children: ReactNode }) {
manage,
cancel: hosts.cancel, clearError: hosts.clearError, restoreFocus: () => { if (!managing) restoreFocus(); },
};
useEffect(() => { if (selected) document.title = `${selected.name} · nanobot`; }, [selected]);
useEffect(() => { if (selected) document.title = selected.name; }, [selected]);
useEffect(() => {
const rememberFocus = (event: FocusEvent) => {
if (!managementOpen.current && event.target instanceof HTMLElement && localPanel.current?.contains(event.target)
@@ -190,9 +190,10 @@ export function RemoteInstances({ children }: { children: ReactNode }) {
<RemoteConnectionsPage onBackToChat={() => changeManagement(false)} mainNavigationExpanded={!!bridge.surface?.left} />
</ThemeProvider>
</main>}
{!managing && selected && (offline || !activeFrame?.loaded) && <div className="absolute inset-0 overflow-y-auto bg-background p-6 text-center"><div className="flex min-h-full flex-col items-center justify-center gap-3">
{!managing && selected && (offline || !activeFrame?.loaded) && <div role="region" aria-label={t(offline ? recoveryTitle : "remote.opening")} className="absolute inset-0 overflow-y-auto bg-background p-6 text-center"><div className="flex min-h-full flex-col items-center justify-center gap-3">
{offline ? <PlugZap className="h-7 w-7 text-muted-foreground" /> : <Loader2 className="h-6 w-6 animate-spin text-muted-foreground" />}
<p className="max-w-full text-pretty text-xs text-muted-foreground [overflow-wrap:anywhere]">{selected.name} · {selected.hostname}</p>
<p className="max-w-full text-pretty text-xs text-muted-foreground [overflow-wrap:anywhere]"><span className="block font-medium">{selected.name}</span>{" "}
{selected.hostname !== selected.name ? <span className="block">{selected.hostname}</span> : null}</p>
<p className="font-medium">{t(offline ? recoveryTitle : "remote.opening")}</p>
<p className="max-w-sm text-pretty text-sm text-muted-foreground">{recoveryMessage}</p>
<div className="flex max-w-full flex-wrap items-stretch justify-center gap-2 [&>button]:h-auto [&>button]:min-h-10 [&>button]:min-w-0 [&>button]:max-w-full [&>button]:whitespace-normal">
@@ -526,10 +526,9 @@ function MarketplaceSkillRow({
</div>
<div className="mt-1 flex min-w-0 items-center gap-1.5 truncate text-[12px] text-muted-foreground">
{skill.source}
{skill.version ? <span>· v{skill.version}</span> : null}
{skill.version ? <span>v{skill.version}</span> : null}
{skill.provider === "skills_sh" ? (
<>
<span>·</span>
{skill.metric === "installs_24h"
? t("settings.skills.marketplaceInstalls24h", {
count: skill.installs,
@@ -90,7 +90,7 @@ export function TokenUsageModelTrend({ days, modelDays, models }: {
const tokens = columns.reduce((sum, column) => sum + column.values[index], 0);
const rate = model?.cache_read_observed_input_tokens ? percent.format(model.cache_read_tokens / model.cache_read_observed_input_tokens) : "—";
const parts = [
[t("settings.usage.totalTokens"), `${number.format(tokens)} · ${percent.format(tokens / total)}`],
[t("settings.usage.totalTokens"), `${number.format(tokens)} (${percent.format(tokens / total)})`],
[t("settings.usage.cacheHitRate"), rate],
];
return <Tooltip key={index}>
@@ -107,10 +107,8 @@ export function ChannelValidationProgress({
const status = validation?.status ?? (feature.configured ? "configured" : "needs_setup");
const presentation = channelUiPresentation(feature.name, feature.webui);
const identity = validation?.identity?.name
? validation.identity.workspace
? `${validation.identity.name} · ${validation.identity.workspace}`
: validation.identity.name
: presentation?.displayName ?? feature.display_name;
|| presentation?.displayName || feature.display_name;
const workspace = validation?.identity?.workspace;
return (
<div
@@ -173,7 +171,10 @@ export function ChannelValidationProgress({
)}
>
{channelValidationStatusIcon(status)}
<span className="min-w-0 truncate font-semibold">{identity}</span>
<span className="min-w-0 flex-1">
<span className="block truncate font-semibold">{identity}</span>
{workspace ? <span className="block truncate font-normal">{workspace}</span> : null}
</span>
<span className="lowercase">{channelValidationStatusLabel(status, t)}</span>
</div>
) : null}
@@ -511,15 +511,13 @@ export function ModelsSettings({
<span className="block text-[14px] font-medium text-foreground">
{tx("settings.models.advancedOptions", "Advanced options")}
</span>
<span className="mt-0.5 block text-[12px] text-muted-foreground">
{tx(
"settings.models.advancedSummary",
"Context {{context}} · Max {{max}} tokens",
{
context: Number.isFinite(form.contextWindowTokens) ? formatModelContextWindow(form.contextWindowTokens) : "—",
max: formatContextWindow(form.maxTokens),
},
)}
<span className="mt-0.5 flex flex-wrap gap-x-3 text-[12px] tabular-nums text-muted-foreground">
<span>{tx("settings.models.contextSummary", "Context {{context}}", {
context: Number.isFinite(form.contextWindowTokens) ? formatModelContextWindow(form.contextWindowTokens) : "—",
})}</span>{" "}
<span>{tx("settings.models.outputSummary", "Max {{max}} tokens", {
max: formatContextWindow(form.maxTokens),
})}</span>
</span>
</span>
<ChevronDown
@@ -344,10 +344,9 @@ export function ModelIdPicker({
{model.label ?? model.id}
</span>
{model.description || (model.label && model.label !== model.id) ? (
<span className="mt-0.5 block truncate text-[10.5px] text-muted-foreground">
{[model.label && model.label !== model.id ? model.id : null, model.description]
.filter(Boolean)
.join(" · ")}
<span className="mt-0.5 flex min-w-0 flex-wrap gap-x-2 text-[10.5px] text-muted-foreground">
{model.label && model.label !== model.id ? <span className="truncate font-mono">{model.id}</span> : null}{" "}
{model.description ? <span className="truncate">{model.description}</span> : null}
</span>
) : null}
</span>
@@ -23,15 +23,15 @@ export function TimezonePicker({ value, onChange, ...triggerProps }: {
.formatToParts(now).find((part) => part.type === "timeZoneName")?.value ?? zone;
const offset = new Intl.DateTimeFormat("en", { timeZone: zone, timeZoneName: "longOffset" })
.formatToParts(now).find((part) => part.type === "timeZoneName")?.value ?? "";
return { zone, detail: `${name} · ${offset.replace("GMT", "UTC")}` };
return { zone, detail: name, offset: offset.replace("GMT", "UTC") };
} catch {
// Keep a server-supported timezone visible even if this browser cannot format it.
return { zone, detail: zone };
return { zone, detail: zone, offset: "" };
}
});
}, [i18n.language, value]);
const filtered = options.filter(({ zone, detail }) =>
`${zone.replaceAll("_", " ")} ${zone} ${detail}`.toLocaleLowerCase(i18n.language)
const filtered = options.filter(({ zone, detail, offset }) =>
`${zone.replaceAll("_", " ")} ${zone} ${detail} ${offset}`.toLocaleLowerCase(i18n.language)
.includes(query.trim().toLocaleLowerCase(i18n.language)));
const select = (zone: string) => { onChange(zone); setOpen(false); };
const navigation = useComboboxNavigation({
@@ -52,10 +52,12 @@ export function TimezonePicker({ value, onChange, ...triggerProps }: {
aria-label={t("sidebar.searchAria")} placeholder={t("sidebar.searchPlaceholder")}
className="mb-1.5 h-9 rounded-full" />
<div {...navigation.listProps} aria-label={triggerProps["aria-label"]} className="max-h-64 overflow-y-auto">
{filtered.map(({ zone, detail }) => (
{filtered.map(({ zone, detail, offset }) => (
<ComboboxOption key={zone} {...navigation.getOptionProps(zone)} className="block">
<span className="block">{zone}</span>
<span className="block text-xs text-muted-foreground">{detail}</span>
<span className="flex flex-wrap gap-x-2 text-xs text-muted-foreground">
<span>{detail}</span>{" "}<span className="tabular-nums">{offset}</span>
</span>
</ComboboxOption>
))}
</div>
@@ -576,9 +576,7 @@ function McpAppsCatalogRow({
`settings.mcp.presetDescriptions.${preset.name}`,
preset.description || preset.note || preset.name,
);
const detail = agentPlugin && preset.requires
? `${description} · ${preset.requires}`
: description || preset.requires;
const detail = description || preset.requires;
const manualCallback =
oauthFlow?.completion_input === "callback_url" && Boolean(oauthFlow.authorization_url);
const callbackInputId = `mcp-oauth-callback-${preset.name}`;
@@ -629,6 +627,9 @@ function McpAppsCatalogRow({
<span className="truncate">
{runtimeFailed ? failureLabel : detail}
</span>
{!runtimeFailed && agentPlugin && description && preset.requires ? (
<span className="min-w-0 truncate">{preset.requires}</span>
) : null}
</p>
</div>
<div className="ml-auto flex shrink-0 items-center gap-1">
@@ -1431,9 +1432,7 @@ function CliAppReadyPanel({
</div>
<div className="mt-0.5 flex min-w-0 flex-wrap items-center gap-1.5 text-[12px] text-muted-foreground">
<span className="font-mono">@{app.name}</span>
<span aria-hidden>·</span>
<span className="truncate font-mono">{app.entry_point || app.name}</span>
<span aria-hidden>·</span>
<span>{app.category}</span>
</div>
</div>
@@ -535,7 +535,6 @@ function ConnectionPanel({
preset.connection_summary && "mt-3 border-t border-border/45 pt-3",
)}>
<span>{formatTransport(preset.transport)}</span>
<span aria-hidden>·</span>
<span>{authentication}</span>
<div className="ml-auto flex items-center gap-1.5">
{preset.docs_url ? (
@@ -587,11 +586,11 @@ function ConnectionPanel({
const inputId = `mcp-manage-${preset.name}-${field.name}`;
return (
<label key={field.name} htmlFor={inputId} className="min-w-0">
<span className="mb-1.5 flex items-center gap-1 text-[12.5px] font-medium text-muted-foreground">
<span className="mb-1.5 flex items-center gap-2 text-[12.5px] font-medium text-muted-foreground">
{field.label}
{field.configured ? (
<span className="font-normal text-emerald-600 dark:text-emerald-300">
· {tx("settings.mcp.configured", "Configured")}
{tx("settings.mcp.configured", "Configured")}
</span>
) : null}
</span>
@@ -346,14 +346,14 @@ function FoldedAgentActivity({
const activityLabel = retryStatus?.state === "exhausted"
? t("message.retryExhausted", {
error: retryError,
defaultValue: "{{error}} · ending turn",
defaultValue: "{{error}}. Ending turn.",
})
: retryStatus?.state === "waiting"
? t("message.retryWaiting", {
error: retryError,
seconds: retrySeconds,
attempt: retryAttempt,
defaultValue: "{{error}} · retrying in {{seconds}}s · attempt {{attempt}}",
defaultValue: "{{error}}. Retrying in {{seconds}}s (attempt {{attempt}}).",
})
: isTurnStreaming
? t("message.activityWorkingFor", {
@@ -828,7 +828,9 @@ function ActivityTraceRow({
icon={Icon}
active={rowActive && trace.kind !== "done"}
tone={status === "error" ? "error" : status === "done" ? "success" : "active"}
label={formatActivityTarget(t, trace.label, trace.detail)}
label={trace.kind === "search" ? trace.label : formatActivityTarget(t, trace.label, trace.detail)}
detail={trace.kind === "search" ? trace.detail : trace.aside}
detailClassName={trace.kind === "search" ? "whitespace-pre-line" : undefined}
/>
);
}
@@ -1251,16 +1253,18 @@ function CliRunRow({ run, active, app }: { run: CliRunSummary; active: boolean;
const logoUrls = useMemo(() => logoFallbackUrls(app?.logo_url), [app?.logo_url]);
const { logoUrl, onLogoError, onLogoLoad } = useLogoFallback(logoUrls);
const displayName = app?.display_name || titleFromPresetName(run.name);
const label = `${t(
const label = t(
`message.${failed ? "cliActivityFailedOne" : rowActive ? "cliActivityRunningOne" : "cliActivityRanOne"}`,
{ name: displayName },
)}${args ? ` · ${args}` : ""}`;
);
return (
<ActivityStep
active={rowActive}
tone={failed ? "error" : rowActive ? "active" : run.status === "done" ? "success" : "neutral"}
label={label}
detail={args}
detailClassName="font-mono text-[12px]"
marker={(
<span
data-testid={`activity-cli-logo-${run.name.toLowerCase()}`}
@@ -1334,13 +1338,14 @@ function McpRunRow({ run, active, preset }: { run: McpRunSummary; active: boolea
failed ? "error" : rowActive ? "running" : "done",
t,
);
const label = `${formatActivityTarget(t, activity.action, activity.target ?? "")} · ${displayName}`;
const label = formatActivityTarget(t, activity.action, activity.target ?? "");
return (
<ActivityStep
active={rowActive}
tone={failed ? "error" : rowActive ? "active" : run.status === "done" ? "success" : "neutral"}
label={label}
detail={displayName}
marker={(
<span
data-testid={`activity-mcp-logo-${run.presetName.toLowerCase()}`}
@@ -129,11 +129,11 @@ export function ModelPresetBadge({
model: modelDetail ?? modelPresets[listedIndex]?.model,
provider: provider || modelPresets[listedIndex]?.provider,
};
const tooltipLabel = needsSetup ? label : [...new Set([
const tooltipParts = needsSetup ? [label] : [...new Set([
label,
modelDetail,
providerLabel,
].filter(Boolean))].join(" · ");
].filter((part): part is string => Boolean(part)))];
const presets = !activeName
? modelPresets
: listedIndex < 0
@@ -459,9 +459,11 @@ export function ModelPresetBadge({
return (
<TooltipProvider>
<Tooltip open={tooltipLabel !== label && tooltipOpen && !open && !motion} onOpenChange={setTooltipOpen}>
<Tooltip open={tooltipParts.length > 1 && tooltipOpen && !open && !motion} onOpenChange={setTooltipOpen}>
{badge}
<TooltipContent side="top">{tooltipLabel}</TooltipContent>
<TooltipContent side="top" className="max-w-[min(24rem,calc(100vw-2rem))] space-y-1 break-words">
{tooltipParts.map((part, index) => <p key={part} className={index === 0 ? "font-medium" : "text-xs text-muted-foreground"}>{part}{index < tooltipParts.length - 1 ? " " : ""}</p>)}
</TooltipContent>
</Tooltip>
</TooltipProvider>
);
@@ -186,7 +186,7 @@ export function SubagentTasksProvider({ client, sessionKey, token, enabled, live
<SheetDescription className="flex items-center gap-2">
{selected ? <><TaskStateIcon task={selected} />
<span className={selected.state === "done" ? "sr-only" : undefined}>{t(`thread.subagents.states.${selected.state}`)}</span>
<span className="tabular-nums">{selected.state !== "done" ? "· " : null}<TaskElapsed task={selected} /></span></> : null}
<span className="tabular-nums"><TaskElapsed task={selected} /></span></> : null}
</SheetDescription>
</div>
{selected && sessionKey ? <div className="min-h-0 flex-1 overflow-y-auto overscroll-contain py-5">
@@ -313,9 +313,10 @@ function SubagentWork({ tasks, unlinked = false }: { tasks: ObservedSubagentTask
className="flex w-full items-center gap-2.5 px-3 py-2.5 text-left text-xs text-muted-foreground hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring">
<DelegationIcon className="h-3.5 w-3.5 shrink-0" aria-hidden />
<span className="font-medium">{title}</span>
<span className="ml-auto min-w-0 text-right">
{summary}{activeCount ? ` · ${t("thread.subagents.running", { count: activeCount })}` : ""}
{failedCount ? <span className="ml-2 text-destructive">{t("thread.subagents.needsReview", { count: failedCount })}</span> : null}
<span className="ml-auto flex min-w-0 flex-wrap justify-end gap-x-2 text-right">
<span>{summary}</span>{" "}
{activeCount ? <span>{t("thread.subagents.running", { count: activeCount })}</span> : null}
{failedCount ? <span className="text-destructive">{t("thread.subagents.needsReview", { count: failedCount })}</span> : null}
</span>
<ChevronDown className={`h-3.5 w-3.5 shrink-0 transition-transform ${open ? "rotate-180" : ""}`} aria-hidden />
</button>
@@ -12,6 +12,8 @@ export interface ActivityStepProps {
marker?: ReactNode;
showMarker?: boolean;
label: ReactNode;
detail?: string;
detailClassName?: string;
tooltipContent?: ReactNode;
ariaLabel?: string;
active?: boolean;
@@ -29,6 +31,8 @@ export function ActivityStep({
marker,
showMarker = true,
label,
detail,
detailClassName,
tooltipContent,
ariaLabel,
active = false,
@@ -42,11 +46,13 @@ export function ActivityStep({
}: ActivityStepProps) {
const lineRef = useRef<HTMLDivElement>(null);
const [hintOpen, setHintOpen] = useState(false);
const textLabel = typeof label === "string" ? [label, detail].filter(Boolean).join("\n") : undefined;
const line = (
<div
ref={lineRef}
data-testid="activity-line"
tabIndex={typeof label === "string" ? 0 : undefined}
aria-label={detail && typeof label === "string" ? `${label}, ${detail}` : undefined}
className="flex min-w-0 items-center gap-1.5 overflow-hidden whitespace-nowrap"
>
<StreamingLabelSheen
@@ -57,7 +63,12 @@ export function ActivityStep({
labelClassName,
)}
>
{label}
{detail ? (
<span className="flex min-w-0 items-baseline gap-2">
<span className="max-w-[70%] shrink-0 truncate">{label}</span>{" "}
<span className={cn("min-w-0 flex-1 truncate font-normal text-muted-foreground", detailClassName)}>{detail}</span>
</span>
) : label}
</StreamingLabelSheen>
</div>
);
@@ -99,11 +110,11 @@ export function ActivityStep({
<Tooltip open={hintOpen} onOpenChange={(open) => {
const truncated = Array.from(lineRef.current?.querySelectorAll<HTMLElement>(".truncate") ?? [])
.some((element) => element.scrollWidth > element.clientWidth);
setHintOpen(open && (truncated || tooltipContent !== undefined && tooltipContent !== label));
setHintOpen(open && (truncated || tooltipContent !== undefined && tooltipContent !== textLabel));
}}>
<TooltipTrigger asChild>{line}</TooltipTrigger>
<TooltipContent side="top" className="max-w-[min(32rem,calc(100vw-2rem))] whitespace-pre-wrap break-words">
{tooltipContent ?? label}
{tooltipContent ?? textLabel}
</TooltipContent>
</Tooltip>
</TooltipProvider>
@@ -37,14 +37,14 @@ export function GenericToolRun({ items }: { items: GenericToolRunItem[] }) {
const { t } = useTranslation();
const model = useMemo(() => buildModel(items, t), [items, t]);
const action = formatActivityTarget(t, model.label, model.detail);
const label = model.aside ? `${action} · ${model.aside}` : action;
return (
<ActivityStep
icon={model.status === "error" ? AlertCircle : model.icon}
active={model.status === "running"}
tone={model.status === "error" ? "error" : model.status === "done" ? "success" : "active"}
label={label}
label={action}
detail={model.aside}
/>
);
}
@@ -70,7 +70,7 @@ export function ThinkingReasoningShell({
onClick={onToggle}
aria-expanded={expanded}
aria-controls={contentId}
aria-label={expanded && collapseLabel ? `${label} · ${collapseLabel}` : label}
aria-label={expanded && collapseLabel ? `${label}, ${collapseLabel}` : label}
aria-live={active ? "polite" : undefined}
>
{headerContent}
@@ -32,7 +32,7 @@ export function WebActivityRow({
href={href}
target="_blank"
rel="noreferrer noopener"
aria-label={`${title} · ${displayUrl}`}
aria-label={`${title}, ${displayUrl}`}
className="flex min-w-0 items-center gap-2 overflow-hidden text-foreground/82 hover:text-foreground"
>
<span className="min-w-0 truncate font-medium">{title}</span>
@@ -15,7 +15,7 @@ export function WebSearchRun({ run, turnActive }: { run: WebSearchRunModel; turn
const { t } = useTranslation();
const active = run.status === "running" && turnActive;
const status = run.status === "running" && !turnActive ? "done" : run.status;
const label = presentWebSearchAction(run.query, status, run.target, t);
const presentation = presentWebSearchAction(run.query, status, run.target, t);
return (
<>
@@ -23,7 +23,9 @@ export function WebSearchRun({ run, turnActive }: { run: WebSearchRunModel; turn
icon={status === "error" ? AlertCircle : WebSearchIcon}
active={active}
tone={status === "error" ? "error" : status === "done" ? "success" : "active"}
label={label}
label={presentation.label}
detail={presentation.detail}
detailClassName="whitespace-pre-line"
/>
{run.sources.map((source) => (
<WebActivityRow
@@ -56,16 +56,17 @@ export function formatActivityTarget(t: TFunction, action: string, target: strin
: action;
}
export function summarizeShellCommand(command: string, t: TFunction): string {
export function summarizeShellCommand(command: string, t: TFunction): { detail: string; aside?: string } {
const lines = redactShellCommand(command.replace(/\r\n/g, "\n"))
.split("\n")
.map((line) => line.trim())
.filter(Boolean);
const firstLine = compactActivityPath(lines[0] || t("message.agentActivity.command"));
const firstPreview = truncateMiddle(firstLine, 92);
return lines.length <= 1
? firstPreview
: `${firstPreview} · ${t("message.agentActivity.scriptLines", { count: lines.length })}`;
return {
detail: firstPreview,
...(lines.length > 1 ? { aside: t("message.agentActivity.scriptLines", { count: lines.length }) } : {}),
};
}
function truncateMiddle(value: string, maxLength: number): string {
@@ -9,6 +9,7 @@ export interface TraceDescription {
kind: "search" | "tool" | "done" | "trace";
label: string;
detail: string;
aside?: string;
icon?: "clock";
url?: string;
host?: string;
@@ -33,8 +34,7 @@ export function describeTraceLine(
const query = traceFieldFromArgs(args, ["query", "q", "text"]) || args;
return {
kind: "search",
label: presentWebSearchAction(query, status, name === "x_search" ? "x" : "web", t),
detail: "",
...presentWebSearchAction(query, status, name === "x_search" ? "x" : "web", t),
};
}
if (/fetch|read|open/i.test(name) || plainWebReadTrace) {
@@ -108,7 +108,7 @@ function describeShellTrace(
return {
kind: "tool",
label: activityStatus(t, status, "runningCommand", "ranCommand", "commandFailed"),
detail: summarizeShellCommand(command, t),
...summarizeShellCommand(command, t),
};
}
@@ -78,12 +78,13 @@ function presentWebSearchQuery(query: string): WebSearchQueryPresentation {
const scopes: string[] = [];
const safeQuery = redactActivityText(query);
const cleanQuery = safeQuery
.replace(/(?:^|\s)site:([^\s]+)/gi, (_match, rawSite: string) => {
.replace(/(^|\s)site:([^\s]+)/gi, (_match, prefix: string, rawSite: string) => {
const scope = webSearchScope(rawSite);
if (scope && !scopes.includes(scope)) scopes.push(scope);
return " ";
return prefix;
})
.replace(/\s+/g, " ")
.replace(/[^\S\n]+/g, " ")
.replace(/ *\n */g, "\n")
.trim();
return {
@@ -97,14 +98,16 @@ export function presentWebSearchAction(
status: WebSearchStatus,
target: WebSearchTarget = "web",
t: TFunction,
): string {
): { label: string; detail: string } {
const presentation = presentWebSearchQuery(query);
const queryTarget = [presentation.scope, presentation.query].filter(Boolean).join(" · ");
const key = status === "error" ? "searchFailed" : status === "running" ? "searching" : "searched";
const searchTarget = target === "x"
? (queryTarget ? `X · ${queryTarget}` : "X")
: queryTarget || t("message.agentActivity.web");
return t(`message.agentActivity.${key}`, { target: searchTarget });
? ["X", presentation.scope].filter(Boolean).join(" ")
: presentation.scope || t("message.agentActivity.web");
return {
label: t(`message.agentActivity.${key}`, { target: searchTarget }),
detail: presentation.query,
};
}
function mergeWebSearchRun(
@@ -776,7 +776,7 @@ export function PaneWorkbench({
{active ? (
<TooltipContent side="top">
{t("workbench.movePaneHint", {
defaultValue: "Drag to move · Arrow keys also work",
defaultValue: "Drag to move, or use the arrow keys.",
})}
</TooltipContent>
) : null}
+8 -18
View File
@@ -141,7 +141,6 @@
"ready": "Ready",
"preparing": "Connecting to {{name}}…",
"cancelSwitch": "Cancel switch",
"localEnvironment": "Local · {{name}}",
"sshHosts": "From your SSH config",
"refreshHosts": "Refresh SSH hosts",
"useHost": "Use {{host}}",
@@ -156,7 +155,7 @@
"verifyTitle": "Verify this server",
"verifyDescription": "Before connecting for the first time, compare this SSH fingerprint with your server console or administrator.",
"verifyHint": "Continue only if it matches. Only this server's public key is saved; your system SSH config is unchanged.",
"verifyConnect": "Fingerprint matches · Connect",
"verifyConnect": "Connect to verified host",
"title": "Remote connections",
"description": "Connect to nanobot on a server. Chats and settings stay there.",
"local": "Local nanobot",
@@ -334,7 +333,7 @@
},
"documentTitle": {
"base": "nanobot",
"chat": "{{title}} · nanobot"
"chat": "{{title}}"
},
"meta": {
"description": "nanobot web UI — chat with your nanobot workspace."
@@ -718,7 +717,8 @@
"presetNameDuplicate": "A preset with this name already exists.",
"presetNamePlaceholder": "e.g. Fast writing",
"advancedOptions": "Advanced options",
"advancedSummary": "Context {{context}} · Max {{max}} tokens",
"contextSummary": "Context {{context}}",
"outputSummary": "Max {{max}} tokens",
"contextWindowHint": "{{tokens}} tokens",
"contextWindowError": "Enter a positive token count, such as 200k, 1m, or 131072.",
"maxTokens": "Max output tokens",
@@ -1264,7 +1264,6 @@
"filterCli": "Apps",
"filterMcp": "MCP",
"enabledSummary": "{{count}} ready",
"caption": "{{cli}} apps · {{mcp}} MCP tools",
"searchPlaceholder": "Search tools",
"featured": "Tools",
"mcpTools": "MCP tools",
@@ -1281,7 +1280,6 @@
},
"channels": {
"description": "Connect chat apps, email, and WebUI to nanobot.",
"caption": "{{enabled}} running · {{total}} channels",
"searchPlaceholder": "Search channels",
"backToChannels": "All channels",
"catalog": "Channels",
@@ -1618,7 +1616,6 @@
},
"skills": {
"description": "Manage the skills the agent can use in conversations.",
"caption": "{{available}} available · {{total}} total",
"views": "Skills views",
"installedTab": "Installed",
"discoverTab": "Discover",
@@ -1925,9 +1922,7 @@
"placeholderOpening": "Opening a new topic…",
"placeholderStreaming": "Model is responding…",
"inputAria": "Message input",
"sendHint": "Enter to send · Shift+Enter for newline",
"runRuntimeTitle": "Running · {{elapsed}}",
"goalStateStrip": "Goal · {{label}}",
"goalStateStrip": "Goal: {{label}}",
"goalStateFallback": "Goal",
"goalStateExpandAria": "Show full goal",
"goalStateSheetTitle": "Goal",
@@ -2153,15 +2148,10 @@
"toolMany": "Used {{count}} tools",
"toolSummary": "{{count}} tool",
"toolSummaryMany": "{{count}} tools",
"reasoningTools": "Reasoning · {{count}} tools",
"reasoningToolsSingular": "Reasoning · 1 tool",
"reasoning": "Thinking",
"reasoningStreaming": "Thinking…",
"reasoningSummary": "Reasoning",
"agentActivitySummary": "{{reasoning}} steps · {{tools}} tool calls",
"agentActivityToolsOnly": "{{tools}} tool calls",
"agentActivityLiveSummary": "Working… · {{reasoning}} steps · {{tools}} tool calls",
"agentActivityLiveToolsOnly": "Working… · {{tools}} tool calls",
"activityThinkingFor": "Thinking for {{duration}}",
"activityThought": "Thought",
"activityThoughtFor": "Thought for {{duration}}",
@@ -2328,8 +2318,8 @@
"retryRateLimit": "Rate limited",
"retryServer": "Model unavailable",
"retryUnknown": "Model request failed",
"retryWaiting": "{{error}} · retrying in {{seconds}}s · attempt {{attempt}}",
"retryExhausted": "{{error}} · ending turn",
"retryWaiting": "{{error}}. Retrying in {{seconds}}s (attempt {{attempt}}).",
"retryExhausted": "{{error}}. Ending turn.",
"cliActivityRunningOne": "Using {{name}}",
"cliActivityRanOne": "Used {{name}}",
"cliActivityFailedOne": "Could not use {{name}}",
@@ -2442,7 +2432,7 @@
"paneLimit": "Maximum {{count}} panes",
"deleteConversations": "Delete all chats",
"movePane": "Move {{title}} pane",
"movePaneHint": "Drag to move · Arrow keys also work",
"movePaneHint": "Drag to move, or use the arrow keys.",
"resizePaneBoundary": "Resize pane boundary {{index}}",
"promotePane": "Make {{title}} the primary pane",
"paneActions": "{{title}} pane actions",
+8 -18
View File
@@ -141,7 +141,6 @@
"ready": "Ready",
"preparing": "Connecting to {{name}}…",
"cancelSwitch": "Cancel switch",
"localEnvironment": "Local · {{name}}",
"sshHosts": "From your SSH config",
"refreshHosts": "Refresh SSH hosts",
"useHost": "Use {{host}}",
@@ -156,7 +155,7 @@
"verifyTitle": "Verify this server",
"verifyDescription": "Before connecting for the first time, compare this SSH fingerprint with your server console or administrator.",
"verifyHint": "Continue only if it matches. Only this server's public key is saved; your system SSH config is unchanged.",
"verifyConnect": "Fingerprint matches · Connect",
"verifyConnect": "Connect to verified host",
"title": "Remote connections",
"description": "Connect to nanobot on a server. Chats and settings stay there.",
"local": "Local nanobot",
@@ -334,7 +333,7 @@
},
"documentTitle": {
"base": "nanobot",
"chat": "{{title}} · nanobot"
"chat": "{{title}}"
},
"meta": {
"description": "Interfaz web de nanobot: conversa con tu espacio de trabajo de nanobot."
@@ -834,7 +833,8 @@
"presetNameDuplicate": "Ya existe un preajuste con este nombre.",
"presetNamePlaceholder": "p. ej., Escritura rápida",
"advancedOptions": "Opciones avanzadas",
"advancedSummary": "Contexto {{context}} · Máx. {{max}} tokens",
"contextSummary": "Contexto {{context}}",
"outputSummary": "Máx. {{max}} tokens",
"contextWindowHint": "{{tokens}} tokens",
"contextWindowError": "Introduce una cantidad positiva de tokens, como 200k, 1m o 131072.",
"maxTokens": "Máx. tokens de salida",
@@ -1065,7 +1065,6 @@
"filterCli": "Aplicaciones",
"filterMcp": "MCP",
"enabledSummary": "{{count}} disponibles",
"caption": "{{cli}} aplicaciones · {{mcp}} herramientas MCP",
"searchPlaceholder": "Buscar aplicaciones",
"featured": "Herramientas",
"mcpTools": "Herramientas MCP",
@@ -1082,7 +1081,6 @@
},
"channels": {
"description": "Conecta nanobot con tus aplicaciones de chat. Después de instalar las dependencias, configura las credenciales y los ajustes de cada plataforma.",
"caption": "{{enabled}} en ejecución · {{total}} canales",
"searchPlaceholder": "Buscar canales",
"backToChannels": "Todos los canales",
"catalog": "Canales",
@@ -1419,7 +1417,6 @@
},
"skills": {
"description": "Gestiona las habilidades que el agente puede usar durante una conversación.",
"caption": "{{available}} disponibles · {{total}} en total",
"views": "Vistas de habilidades",
"installedTab": "Instaladas",
"discoverTab": "Descubrir",
@@ -1726,9 +1723,7 @@
"placeholderOpening": "Abriendo un nuevo tema…",
"placeholderStreaming": "El modelo está respondiendo…",
"inputAria": "Entrada de mensaje",
"sendHint": "Enter para enviar · Shift+Enter para nueva línea",
"runRuntimeTitle": "En ejecución · {{elapsed}}",
"goalStateStrip": "Objetivo · {{label}}",
"goalStateStrip": "Objetivo: {{label}}",
"goalStateFallback": "Objetivo",
"goalStateExpandAria": "Ver objetivo completo",
"goalStateSheetTitle": "Objetivo",
@@ -1954,15 +1949,10 @@
"toolMany": "Se usaron {{count}} herramientas",
"toolSummary": "{{count}} herramienta",
"toolSummaryMany": "{{count}} herramientas",
"reasoningTools": "Razonamiento · {{count}} herramientas",
"reasoningToolsSingular": "Razonamiento · 1 herramienta",
"reasoning": "Razonamiento",
"reasoningStreaming": "Pensando…",
"reasoningSummary": "Razonamiento",
"agentActivitySummary": "{{reasoning}} pasos · {{tools}} llamadas a herramientas",
"agentActivityToolsOnly": "{{tools}} llamadas a herramientas",
"agentActivityLiveSummary": "En curso… · {{reasoning}} pasos · {{tools}} llamadas a herramientas",
"agentActivityLiveToolsOnly": "En curso… · {{tools}} llamadas a herramientas",
"imageAttachment": "Imagen adjunta",
"videoAttachment": "Archivo de vídeo",
"fileAttachment": "Archivo adjunto",
@@ -2157,8 +2147,8 @@
"retryRateLimit": "Límite de solicitudes alcanzado",
"retryServer": "Modelo no disponible",
"retryUnknown": "La solicitud al modelo falló",
"retryWaiting": "{{error}} · reintentando en {{seconds}} s · intento {{attempt}}",
"retryExhausted": "{{error}} · finalizando el turno",
"retryWaiting": "{{error}}, reintentando en {{seconds}} s, intento {{attempt}}",
"retryExhausted": "{{error}}, finalizando el turno",
"cliActivityRunningOne": "Usando {{name}}",
"cliActivityRanOne": "Usó {{name}}",
"cliActivityFailedOne": "No se pudo usar {{name}}",
@@ -2243,7 +2233,7 @@
"paneLimit": "Máximo {{count}} paneles",
"deleteConversations": "Eliminar todo",
"movePane": "Mover panel {{title}}",
"movePaneHint": "Arrastra para mover · También puedes usar las flechas",
"movePaneHint": "Arrastra para mover. También puedes usar las flechas",
"resizePaneBoundary": "Redimensionar límite de panel {{index}}",
"promotePane": "Convertir {{title}} en el panel principal",
"paneActions": "Acciones del panel {{title}}",
+8 -18
View File
@@ -141,7 +141,6 @@
"ready": "Ready",
"preparing": "Connecting to {{name}}…",
"cancelSwitch": "Cancel switch",
"localEnvironment": "Local · {{name}}",
"sshHosts": "From your SSH config",
"refreshHosts": "Refresh SSH hosts",
"useHost": "Use {{host}}",
@@ -156,7 +155,7 @@
"verifyTitle": "Verify this server",
"verifyDescription": "Before connecting for the first time, compare this SSH fingerprint with your server console or administrator.",
"verifyHint": "Continue only if it matches. Only this server's public key is saved; your system SSH config is unchanged.",
"verifyConnect": "Fingerprint matches · Connect",
"verifyConnect": "Connect to verified host",
"title": "Remote connections",
"description": "Connect to nanobot on a server. Chats and settings stay there.",
"local": "Local nanobot",
@@ -334,7 +333,7 @@
},
"documentTitle": {
"base": "nanobot",
"chat": "{{title}} · nanobot"
"chat": "{{title}}"
},
"meta": {
"description": "Interface web nanobot — discutez avec votre espace de travail nanobot."
@@ -834,7 +833,8 @@
"presetNameDuplicate": "Un préréglage portant ce nom existe déjà.",
"presetNamePlaceholder": "p. ex. Rédaction rapide",
"advancedOptions": "Options avancées",
"advancedSummary": "Contexte {{context}} · Max. {{max}} tokens",
"contextSummary": "Contexte {{context}}",
"outputSummary": "Max. {{max}} tokens",
"contextWindowHint": "{{tokens}} tokens",
"contextWindowError": "Saisissez un nombre positif de tokens, par exemple 200k, 1m ou 131072.",
"maxTokens": "Tokens de sortie max.",
@@ -1064,7 +1064,6 @@
"filterCli": "Applications",
"filterMcp": "MCP",
"enabledSummary": "{{count}} prêts",
"caption": "{{cli}} applications · {{mcp}} outils MCP",
"searchPlaceholder": "Rechercher des applications",
"featured": "Outils",
"mcpTools": "Outils MCP",
@@ -1081,7 +1080,6 @@
},
"channels": {
"description": "Connectez nanobot à vos applications de discussion. L’installation ajoute les dépendances nécessaires ; renseignez ensuite les identifiants et les paramètres de chaque plateforme.",
"caption": "{{enabled}} en cours d’exécution · {{total}} canaux",
"searchPlaceholder": "Rechercher des canaux",
"backToChannels": "Tous les canaux",
"catalog": "Canaux",
@@ -1418,7 +1416,6 @@
},
"skills": {
"description": "Gérez les compétences que l’agent peut utiliser pendant une conversation.",
"caption": "{{available}} disponibles · {{total}} au total",
"views": "Vues des compétences",
"installedTab": "Installées",
"discoverTab": "Découvrir",
@@ -1725,9 +1722,7 @@
"placeholderOpening": "Ouverture d’un nouveau sujet…",
"placeholderStreaming": "Le modèle est en train de répondre…",
"inputAria": "Champ de message",
"sendHint": "Entrée pour envoyer · Maj+Entrée pour un retour à la ligne",
"runRuntimeTitle": "Exécution · {{elapsed}}",
"goalStateStrip": "Objectif · {{label}}",
"goalStateStrip": "Objectif: {{label}}",
"goalStateFallback": "Objectif",
"goalStateExpandAria": "Afficher l’objectif complet",
"goalStateSheetTitle": "Objectif",
@@ -1953,15 +1948,10 @@
"toolMany": "{{count}} outils utilisés",
"toolSummary": "{{count}} outil",
"toolSummaryMany": "{{count}} outils",
"reasoningTools": "Raisonnement · {{count}} outils",
"reasoningToolsSingular": "Raisonnement · 1 outil",
"reasoning": "Raisonnement",
"reasoningStreaming": "En réflexion…",
"reasoningSummary": "Raisonnement",
"agentActivitySummary": "{{reasoning}} étapes · {{tools}} appels d’outils",
"agentActivityToolsOnly": "{{tools}} appels d’outils",
"agentActivityLiveSummary": "En cours… · {{reasoning}} étapes · {{tools}} appels d’outils",
"agentActivityLiveToolsOnly": "En cours… · {{tools}} appels d’outils",
"imageAttachment": "Pièce jointe image",
"videoAttachment": "Pièce jointe vidéo",
"fileAttachment": "Pièce jointe",
@@ -2156,8 +2146,8 @@
"retryRateLimit": "Limite de requêtes atteinte",
"retryServer": "Modèle indisponible",
"retryUnknown": "Échec de la requête au modèle",
"retryWaiting": "{{error}} · nouvelle tentative dans {{seconds}} s · tentative {{attempt}}",
"retryExhausted": "{{error}} · fin du tour",
"retryWaiting": "{{error}}, nouvelle tentative dans {{seconds}} s, tentative {{attempt}}",
"retryExhausted": "{{error}}, fin du tour",
"cliActivityRunningOne": "Utilisation de {{name}}",
"cliActivityRanOne": "{{name}} utilisé",
"cliActivityFailedOne": "Impossible d’utiliser {{name}}",
@@ -2242,7 +2232,7 @@
"paneLimit": "{{count}} volets maximum",
"deleteConversations": "Tout supprimer",
"movePane": "Déplacer le volet {{title}}",
"movePaneHint": "Faites glisser pour déplacer · Les flèches fonctionnent aussi",
"movePaneHint": "Faites glisser pour déplacer. Les flèches fonctionnent aussi",
"resizePaneBoundary": "Redimensionner la séparation {{index}}",
"promotePane": "Définir {{title}} comme volet principal",
"paneActions": "Actions du volet {{title}}",
+8 -18
View File
@@ -141,7 +141,6 @@
"ready": "Ready",
"preparing": "Connecting to {{name}}…",
"cancelSwitch": "Cancel switch",
"localEnvironment": "Local · {{name}}",
"sshHosts": "From your SSH config",
"refreshHosts": "Refresh SSH hosts",
"useHost": "Use {{host}}",
@@ -156,7 +155,7 @@
"verifyTitle": "Verify this server",
"verifyDescription": "Before connecting for the first time, compare this SSH fingerprint with your server console or administrator.",
"verifyHint": "Continue only if it matches. Only this server's public key is saved; your system SSH config is unchanged.",
"verifyConnect": "Fingerprint matches · Connect",
"verifyConnect": "Connect to verified host",
"title": "Remote connections",
"description": "Connect to nanobot on a server. Chats and settings stay there.",
"local": "Local nanobot",
@@ -334,7 +333,7 @@
},
"documentTitle": {
"base": "nanobot",
"chat": "{{title}} · nanobot"
"chat": "{{title}}"
},
"meta": {
"description": "UI web nanobot — ngobrol dengan ruang kerja nanobot Anda."
@@ -834,7 +833,8 @@
"presetNameDuplicate": "Prasetel dengan nama ini sudah ada.",
"presetNamePlaceholder": "mis. Menulis cepat",
"advancedOptions": "Opsi lanjutan",
"advancedSummary": "Konteks {{context}} · Maks. {{max}} token",
"contextSummary": "Konteks {{context}}",
"outputSummary": "Maks. {{max}} token",
"contextWindowHint": "{{tokens}} token",
"contextWindowError": "Masukkan jumlah token positif, seperti 200k, 1m, atau 131072.",
"maxTokens": "Maks. token keluaran",
@@ -1064,7 +1064,6 @@
"filterCli": "Aplikasi",
"filterMcp": "MCP",
"enabledSummary": "{{count}} siap",
"caption": "{{cli}} aplikasi · {{mcp}} alat MCP",
"searchPlaceholder": "Cari aplikasi",
"featured": "Alat",
"mcpTools": "Alat MCP",
@@ -1081,7 +1080,6 @@
},
"channels": {
"description": "Hubungkan nanobot ke aplikasi chat. Setelah memasang paket integrasi, lengkapi kredensial dan pengaturan untuk setiap platform.",
"caption": "{{enabled}} berjalan · {{total}} kanal",
"searchPlaceholder": "Cari kanal",
"backToChannels": "Semua kanal",
"catalog": "Kanal",
@@ -1418,7 +1416,6 @@
},
"skills": {
"description": "Kelola keterampilan yang dapat digunakan agen selama percakapan.",
"caption": "{{available}} tersedia · {{total}} total",
"views": "Tampilan keterampilan",
"installedTab": "Terpasang",
"discoverTab": "Temukan",
@@ -1725,9 +1722,7 @@
"placeholderOpening": "Membuka topik baru…",
"placeholderStreaming": "Model sedang merespons…",
"inputAria": "Input pesan",
"sendHint": "Enter untuk kirim · Shift+Enter untuk baris baru",
"runRuntimeTitle": "Berjalan · {{elapsed}}",
"goalStateStrip": "Tujuan · {{label}}",
"goalStateStrip": "Tujuan: {{label}}",
"goalStateFallback": "Tujuan",
"goalStateExpandAria": "Lihat tujuan lengkap",
"goalStateSheetTitle": "Tujuan",
@@ -1953,15 +1948,10 @@
"toolMany": "Menggunakan {{count}} alat",
"toolSummary": "{{count}} alat",
"toolSummaryMany": "{{count}} alat",
"reasoningTools": "Penalaran · {{count}} alat",
"reasoningToolsSingular": "Penalaran · 1 alat",
"reasoning": "Penalaran",
"reasoningStreaming": "Berpikir…",
"reasoningSummary": "Penalaran",
"agentActivitySummary": "{{reasoning}} langkah · {{tools}} panggilan alat",
"agentActivityToolsOnly": "{{tools}} panggilan alat",
"agentActivityLiveSummary": "Berjalan… · {{reasoning}} langkah · {{tools}} panggilan alat",
"agentActivityLiveToolsOnly": "Berjalan… · {{tools}} panggilan alat",
"imageAttachment": "Lampiran gambar",
"videoAttachment": "Lampiran video",
"fileAttachment": "Lampiran file",
@@ -2156,8 +2146,8 @@
"retryRateLimit": "Batas permintaan tercapai",
"retryServer": "Model tidak tersedia",
"retryUnknown": "Permintaan model gagal",
"retryWaiting": "{{error}} · mencoba lagi dalam {{seconds}} dtk · percobaan {{attempt}}",
"retryExhausted": "{{error}} · mengakhiri giliran",
"retryWaiting": "{{error}}, mencoba lagi dalam {{seconds}} dtk, percobaan {{attempt}}",
"retryExhausted": "{{error}}, mengakhiri giliran",
"cliActivityRunningOne": "Menggunakan {{name}}",
"cliActivityRanOne": "Menggunakan {{name}} selesai",
"cliActivityFailedOne": "Tidak dapat menggunakan {{name}}",
@@ -2242,7 +2232,7 @@
"paneLimit": "Maksimal {{count}} panel",
"deleteConversations": "Hapus semua",
"movePane": "Pindahkan panel {{title}}",
"movePaneHint": "Seret untuk memindahkan · Tombol panah juga dapat digunakan",
"movePaneHint": "Seret untuk memindahkan. Tombol panah juga dapat digunakan",
"resizePaneBoundary": "Ubah ukuran batas panel {{index}}",
"promotePane": "Jadikan {{title}} panel utama",
"paneActions": "Tindakan panel {{title}}",
+10 -20
View File
@@ -141,7 +141,6 @@
"ready": "Ready",
"preparing": "Connecting to {{name}}…",
"cancelSwitch": "Cancel switch",
"localEnvironment": "Local · {{name}}",
"sshHosts": "From your SSH config",
"refreshHosts": "Refresh SSH hosts",
"useHost": "Use {{host}}",
@@ -156,7 +155,7 @@
"verifyTitle": "Verify this server",
"verifyDescription": "Before connecting for the first time, compare this SSH fingerprint with your server console or administrator.",
"verifyHint": "Continue only if it matches. Only this server's public key is saved; your system SSH config is unchanged.",
"verifyConnect": "Fingerprint matches · Connect",
"verifyConnect": "Connect to verified host",
"title": "Remote connections",
"description": "Connect to nanobot on a server. Chats and settings stay there.",
"local": "Local nanobot",
@@ -334,7 +333,7 @@
},
"documentTitle": {
"base": "nanobot",
"chat": "{{title}} · nanobot"
"chat": "{{title}}"
},
"meta": {
"description": "nanobot Web UI — nanobot ワークスペースと会話します。"
@@ -834,7 +833,8 @@
"presetNameDuplicate": "同じ名前のプリセットがすでに存在します。",
"presetNamePlaceholder": "例:文章作成用",
"advancedOptions": "詳細オプション",
"advancedSummary": "コンテキスト {{context}} · 最大 {{max}} トークン",
"contextSummary": "コンテキスト {{context}}",
"outputSummary": "最大 {{max}} トークン",
"contextWindowHint": "{{tokens}} トークン",
"contextWindowError": "200k、1m、131072 など、正のトークン数を入力してください。",
"maxTokens": "最大出力トークン",
@@ -1064,7 +1064,6 @@
"filterCli": "アプリ",
"filterMcp": "MCP",
"enabledSummary": "{{count}} 件使用可能",
"caption": "アプリ {{cli}} 件 · MCP ツール {{mcp}} 件",
"searchPlaceholder": "アプリを検索",
"featured": "ツール",
"mcpTools": "MCP ツール",
@@ -1081,7 +1080,6 @@
},
"channels": {
"description": "nanobot をチャットアプリに接続します。必要なパッケージをインストールした後、各プラットフォームの認証情報やワークスペースを設定してください。",
"caption": "実行中 {{enabled}} 件 · 全 {{total}} チャンネル",
"searchPlaceholder": "チャンネルを検索",
"backToChannels": "すべてのチャンネル",
"catalog": "チャンネル",
@@ -1418,7 +1416,6 @@
},
"skills": {
"description": "エージェントが会話中に使用できるスキルを管理します。",
"caption": "{{available}} 利用可能 · 合計 {{total}}",
"views": "スキル表示",
"installedTab": "インストール済み",
"discoverTab": "見つける",
@@ -1725,9 +1722,7 @@
"placeholderOpening": "新しいトピックを開いています…",
"placeholderStreaming": "モデルが応答しています…",
"inputAria": "メッセージ入力欄",
"sendHint": "Enter で送信 · Shift+Enter で改行",
"runRuntimeTitle": "実行中 · {{elapsed}}",
"goalStateStrip": "目標 · {{label}}",
"goalStateStrip": "目標: {{label}}",
"goalStateFallback": "目標",
"goalStateExpandAria": "目標の全文を表示",
"goalStateSheetTitle": "目標",
@@ -1953,15 +1948,10 @@
"toolMany": "{{count}} 個のツールを使用",
"toolSummary": "{{count}} 個のツール",
"toolSummaryMany": "{{count}} 個のツール",
"reasoningTools": "思考 · {{count}} 個のツール",
"reasoningToolsSingular": "思考 · 1 個のツール",
"reasoning": "思考",
"reasoningStreaming": "思考中…",
"reasoningSummary": "思考",
"agentActivitySummary": "{{reasoning}} ステップ · ツール呼び出し {{tools}} 回",
"agentActivityToolsOnly": "ツール呼び出し {{tools}} 回",
"agentActivityLiveSummary": "実行中… · {{reasoning}} ステップ · ツール呼び出し {{tools}} 回",
"agentActivityLiveToolsOnly": "実行中… · ツール呼び出し {{tools}} 回",
"imageAttachment": "画像の添付",
"videoAttachment": "動画の添付",
"fileAttachment": "ファイルの添付",
@@ -2135,8 +2125,8 @@
"toolFailed": "{{name}} に失敗しました",
"toolCompleted": "{{name}} を完了しました",
"toolCall": "ツール呼び出し",
"actionTarget": "{{target}} · {{action}}",
"actionTargetRich": "<target></target> · <action>{{action}}</action>",
"actionTarget": "{{target}} {{action}}",
"actionTargetRich": "<target></target> <action>{{action}}</action>",
"deleteFileFailed": "削除できませんでした",
"editFileFailedShort": "編集できませんでした",
"deletingFile": "削除中",
@@ -2156,8 +2146,8 @@
"retryRateLimit": "リクエスト制限に達しました",
"retryServer": "モデルを利用できません",
"retryUnknown": "モデルリクエストに失敗しました",
"retryWaiting": "{{error}} · {{seconds}}秒後に再試行 · 試行 {{attempt}}",
"retryExhausted": "{{error}} · ターンを終了します",
"retryWaiting": "{{error}}, {{seconds}}秒後に再試行, 試行 {{attempt}}",
"retryExhausted": "{{error}}, ターンを終了します",
"cliActivityRunningOne": "{{name}} を使用中",
"cliActivityRanOne": "{{name}} を使用しました",
"cliActivityFailedOne": "{{name}} を使用できませんでした",
@@ -2242,7 +2232,7 @@
"paneLimit": "最大 {{count}} ペイン",
"deleteConversations": "すべて削除",
"movePane": "{{title}} ペインを移動",
"movePaneHint": "ドラッグで移動 · 矢印キーでも移動できます",
"movePaneHint": "ドラッグで移動. 矢印キーでも移動できます",
"resizePaneBoundary": "ペイン境界 {{index}} のサイズを変更",
"promotePane": "{{title}} をメインペインにする",
"paneActions": "{{title}} ペインの操作",
+10 -20
View File
@@ -141,7 +141,6 @@
"ready": "Ready",
"preparing": "Connecting to {{name}}…",
"cancelSwitch": "Cancel switch",
"localEnvironment": "Local · {{name}}",
"sshHosts": "From your SSH config",
"refreshHosts": "Refresh SSH hosts",
"useHost": "Use {{host}}",
@@ -156,7 +155,7 @@
"verifyTitle": "Verify this server",
"verifyDescription": "Before connecting for the first time, compare this SSH fingerprint with your server console or administrator.",
"verifyHint": "Continue only if it matches. Only this server's public key is saved; your system SSH config is unchanged.",
"verifyConnect": "Fingerprint matches · Connect",
"verifyConnect": "Connect to verified host",
"title": "Remote connections",
"description": "Connect to nanobot on a server. Chats and settings stay there.",
"local": "Local nanobot",
@@ -334,7 +333,7 @@
},
"documentTitle": {
"base": "nanobot",
"chat": "{{title}} · nanobot"
"chat": "{{title}}"
},
"meta": {
"description": "nanobot 웹 UI — nanobot 작업공간과 대화하세요."
@@ -834,7 +833,8 @@
"presetNameDuplicate": "같은 이름의 프리셋이 이미 있습니다.",
"presetNamePlaceholder": "예: 빠른 작성",
"advancedOptions": "고급 옵션",
"advancedSummary": "컨텍스트 {{context}} · 최대 {{max}} 토큰",
"contextSummary": "컨텍스트 {{context}}",
"outputSummary": "최대 {{max}} 토큰",
"contextWindowHint": "{{tokens}} 토큰",
"contextWindowError": "200k, 1m, 131072처럼 양수 토큰 수를 입력하세요.",
"maxTokens": "최대 출력 토큰",
@@ -1064,7 +1064,6 @@
"filterCli": "앱",
"filterMcp": "MCP",
"enabledSummary": "{{count}}개 사용 가능",
"caption": "앱 {{cli}}개 · MCP 도구 {{mcp}}개",
"searchPlaceholder": "앱 검색",
"featured": "도구",
"mcpTools": "MCP 도구",
@@ -1081,7 +1080,6 @@
},
"channels": {
"description": "nanobot을 채팅 앱에 연결합니다. 필요한 패키지를 설치한 후 각 플랫폼의 인증 정보와 작업 공간을 설정하세요.",
"caption": "실행 중 {{enabled}}개 · 총 {{total}}개 채널",
"searchPlaceholder": "채널 검색",
"backToChannels": "모든 채널",
"catalog": "채널",
@@ -1418,7 +1416,6 @@
},
"skills": {
"description": "에이전트가 대화 중에 사용할 수 있는 스킬을 관리합니다.",
"caption": "{{available}}개 사용 가능 · 총 {{total}}개",
"views": "스킬 보기",
"installedTab": "설치됨",
"discoverTab": "탐색",
@@ -1725,9 +1722,7 @@
"placeholderOpening": "새 주제를 여는 중…",
"placeholderStreaming": "모델이 응답 중입니다…",
"inputAria": "메시지 입력",
"sendHint": "Enter로 전송 · Shift+Enter로 줄바꿈",
"runRuntimeTitle": "실행 중 · {{elapsed}}",
"goalStateStrip": "목표 · {{label}}",
"goalStateStrip": "목표: {{label}}",
"goalStateFallback": "목표",
"goalStateExpandAria": "전체 목표 보기",
"goalStateSheetTitle": "목표",
@@ -1953,15 +1948,10 @@
"toolMany": "도구 {{count}}개 사용됨",
"toolSummary": "도구 {{count}}개",
"toolSummaryMany": "도구 {{count}}개",
"reasoningTools": "추론 · 도구 {{count}}개",
"reasoningToolsSingular": "추론 · 도구 1개",
"reasoning": "추론",
"reasoningStreaming": "추론 중…",
"reasoningSummary": "추론",
"agentActivitySummary": "{{reasoning}}단계 · 도구 호출 {{tools}}회",
"agentActivityToolsOnly": "도구 호출 {{tools}}회",
"agentActivityLiveSummary": "진행 중… · {{reasoning}}단계 · 도구 호출 {{tools}}회",
"agentActivityLiveToolsOnly": "진행 중… · 도구 호출 {{tools}}회",
"imageAttachment": "이미지 첨부",
"videoAttachment": "동영상 첨부",
"fileAttachment": "파일 첨부",
@@ -2135,8 +2125,8 @@
"toolFailed": "{{name}} 실패",
"toolCompleted": "{{name}} 완료",
"toolCall": "도구 호출",
"actionTarget": "{{target}} · {{action}}",
"actionTargetRich": "<target></target> · <action>{{action}}</action>",
"actionTarget": "{{target}} {{action}}",
"actionTargetRich": "<target></target> <action>{{action}}</action>",
"deleteFileFailed": "삭제하지 못함",
"editFileFailedShort": "편집하지 못함",
"deletingFile": "삭제 중",
@@ -2156,8 +2146,8 @@
"retryRateLimit": "요청 한도 초과",
"retryServer": "모델을 사용할 수 없음",
"retryUnknown": "모델 요청 실패",
"retryWaiting": "{{error}} · {{seconds}}초 후 재시도 · 시도 {{attempt}}",
"retryExhausted": "{{error}} · 턴 종료 중",
"retryWaiting": "{{error}}, {{seconds}}초 후 재시도, 시도 {{attempt}}",
"retryExhausted": "{{error}}, 턴 종료 중",
"cliActivityRunningOne": "{{name}} 사용 중",
"cliActivityRanOne": "{{name}} 사용함",
"cliActivityFailedOne": "{{name}} 사용 실패",
@@ -2242,7 +2232,7 @@
"paneLimit": "최대 {{count}}개 창",
"deleteConversations": "모두 삭제",
"movePane": "{{title}} 창 이동",
"movePaneHint": "드래그하여 이동 · 방향키로도 이동 가능",
"movePaneHint": "드래그하여 이동. 방향키로도 이동 가능",
"resizePaneBoundary": "창 경계 {{index}} 크기 조절",
"promotePane": "{{title}}을(를) 기본 창으로 설정",
"paneActions": "{{title}} 창 작업",
+8 -18
View File
@@ -141,7 +141,6 @@
"ready": "Ready",
"preparing": "Connecting to {{name}}…",
"cancelSwitch": "Cancel switch",
"localEnvironment": "Local · {{name}}",
"sshHosts": "From your SSH config",
"refreshHosts": "Refresh SSH hosts",
"useHost": "Use {{host}}",
@@ -156,7 +155,7 @@
"verifyTitle": "Verify this server",
"verifyDescription": "Before connecting for the first time, compare this SSH fingerprint with your server console or administrator.",
"verifyHint": "Continue only if it matches. Only this server's public key is saved; your system SSH config is unchanged.",
"verifyConnect": "Fingerprint matches · Connect",
"verifyConnect": "Connect to verified host",
"title": "Remote connections",
"description": "Connect to nanobot on a server. Chats and settings stay there.",
"local": "Local nanobot",
@@ -334,7 +333,7 @@
},
"documentTitle": {
"base": "nanobot",
"chat": "{{title}} · nanobot"
"chat": "{{title}}"
},
"meta": {
"description": "Interface web do nanobot — converse com o seu espaço de trabalho do nanobot."
@@ -532,7 +531,8 @@
"presetNameDuplicate": "Já existe uma predefinição com este nome.",
"presetNamePlaceholder": "ex.: Escrita rápida",
"advancedOptions": "Opções avançadas",
"advancedSummary": "Contexto {{context}} · Máx. {{max}} tokens",
"contextSummary": "Contexto {{context}}",
"outputSummary": "Máx. {{max}} tokens",
"contextWindowHint": "{{tokens}} tokens",
"contextWindowError": "Insira uma quantidade positiva de tokens, como 200k, 1m ou 131072.",
"maxTokens": "Máx. de tokens de saída",
@@ -1078,7 +1078,6 @@
"filterCli": "Aplicativos",
"filterMcp": "MCP",
"enabledSummary": "{{count}} disponíveis",
"caption": "{{cli}} aplicativos · {{mcp}} ferramentas MCP",
"searchPlaceholder": "Buscar ferramentas",
"featured": "Ferramentas",
"mcpTools": "Ferramentas MCP",
@@ -1095,7 +1094,6 @@
},
"channels": {
"description": "Conecte aplicativos de chat, e-mail e WebUI ao nanobot.",
"caption": "{{enabled}} em execução · {{total}} canais",
"searchPlaceholder": "Buscar canais",
"backToChannels": "Todos os canais",
"catalog": "Canais",
@@ -1432,7 +1430,6 @@
},
"skills": {
"description": "Gerencie as habilidades que o agente pode usar durante uma conversa.",
"caption": "{{available}} disponíveis · {{total}} no total",
"views": "Visualizações de habilidades",
"installedTab": "Instaladas",
"discoverTab": "Descobrir",
@@ -1739,9 +1736,7 @@
"placeholderOpening": "Abrindo um novo tópico…",
"placeholderStreaming": "O modelo está respondendo…",
"inputAria": "Campo de mensagem",
"sendHint": "Enter para enviar · Shift+Enter para nova linha",
"runRuntimeTitle": "Executando · {{elapsed}}",
"goalStateStrip": "Objetivo · {{label}}",
"goalStateStrip": "Objetivo: {{label}}",
"goalStateFallback": "Objetivo",
"goalStateExpandAria": "Mostrar objetivo completo",
"goalStateSheetTitle": "Objetivo",
@@ -1967,15 +1962,10 @@
"toolMany": "Foram usadas {{count}} ferramentas",
"toolSummary": "{{count}} ferramenta",
"toolSummaryMany": "{{count}} ferramentas",
"reasoningTools": "Raciocínio · {{count}} ferramentas",
"reasoningToolsSingular": "Raciocínio · 1 ferramenta",
"reasoning": "Pensando",
"reasoningStreaming": "Pensando…",
"reasoningSummary": "Raciocínio",
"agentActivitySummary": "{{reasoning}} etapas · {{tools}} chamadas de ferramenta",
"agentActivityToolsOnly": "{{tools}} chamadas de ferramenta",
"agentActivityLiveSummary": "Trabalhando… · {{reasoning}} etapas · {{tools}} chamadas de ferramenta",
"agentActivityLiveToolsOnly": "Trabalhando… · {{tools}} chamadas de ferramenta",
"activityThinkingFor": "Pensando por {{duration}}",
"activityThought": "Pensamento",
"activityThoughtFor": "Pensou por {{duration}}",
@@ -2142,8 +2132,8 @@
"retryRateLimit": "Limite de solicitações atingido",
"retryServer": "Modelo indisponível",
"retryUnknown": "Falha na solicitação ao modelo",
"retryWaiting": "{{error}} · tentando novamente em {{seconds}} s · tentativa {{attempt}}",
"retryExhausted": "{{error}} · encerrando o turno",
"retryWaiting": "{{error}}, tentando novamente em {{seconds}} s, tentativa {{attempt}}",
"retryExhausted": "{{error}}, encerrando o turno",
"cliActivityRunningOne": "Usando {{name}}",
"cliActivityRanOne": "Usou {{name}}",
"cliActivityFailedOne": "Não foi possível usar {{name}}",
@@ -2256,7 +2246,7 @@
"paneLimit": "Máximo de {{count}} painéis",
"deleteConversations": "Excluir tudo",
"movePane": "Mover painel {{title}}",
"movePaneHint": "Arraste para mover · As setas também funcionam",
"movePaneHint": "Arraste para mover. As setas também funcionam",
"resizePaneBoundary": "Redimensionar limite do painel {{index}}",
"promotePane": "Tornar {{title}} o painel principal",
"paneActions": "Ações do painel {{title}}",
+8 -18
View File
@@ -141,7 +141,6 @@
"ready": "Ready",
"preparing": "Connecting to {{name}}…",
"cancelSwitch": "Cancel switch",
"localEnvironment": "Local · {{name}}",
"sshHosts": "From your SSH config",
"refreshHosts": "Refresh SSH hosts",
"useHost": "Use {{host}}",
@@ -156,7 +155,7 @@
"verifyTitle": "Verify this server",
"verifyDescription": "Before connecting for the first time, compare this SSH fingerprint with your server console or administrator.",
"verifyHint": "Continue only if it matches. Only this server's public key is saved; your system SSH config is unchanged.",
"verifyConnect": "Fingerprint matches · Connect",
"verifyConnect": "Connect to verified host",
"title": "Remote connections",
"description": "Connect to nanobot on a server. Chats and settings stay there.",
"local": "Local nanobot",
@@ -334,7 +333,7 @@
},
"documentTitle": {
"base": "nanobot",
"chat": "{{title}} · nanobot"
"chat": "{{title}}"
},
"meta": {
"description": "Giao diện web nanobot — trò chuyện với không gian làm việc nanobot của bạn."
@@ -834,7 +833,8 @@
"presetNameDuplicate": "Đã có cấu hình đặt trước mang tên này.",
"presetNamePlaceholder": "ví dụ: Viết nhanh",
"advancedOptions": "Tùy chọn nâng cao",
"advancedSummary": "Ngữ cảnh {{context}} · Tối đa {{max}} token",
"contextSummary": "Ngữ cảnh {{context}}",
"outputSummary": "Tối đa {{max}} token",
"contextWindowHint": "{{tokens}} token",
"contextWindowError": "Nhập số lượng token dương, chẳng hạn 200k, 1m hoặc 131072.",
"maxTokens": "Token đầu ra tối đa",
@@ -1064,7 +1064,6 @@
"filterCli": "Ứng dụng",
"filterMcp": "MCP",
"enabledSummary": "{{count}} sẵn sàng",
"caption": "{{cli}} ứng dụng · {{mcp}} công cụ MCP",
"searchPlaceholder": "Tìm ứng dụng",
"featured": "Công cụ",
"mcpTools": "Công cụ MCP",
@@ -1081,7 +1080,6 @@
},
"channels": {
"description": "Kết nối nanobot với các ứng dụng trò chuyện. Sau khi cài gói tích hợp, hãy thiết lập thông tin xác thực và các tùy chọn của từng nền tảng.",
"caption": "{{enabled}} đang chạy · {{total}} kênh",
"searchPlaceholder": "Tìm kênh",
"backToChannels": "Tất cả kênh",
"catalog": "Kênh",
@@ -1418,7 +1416,6 @@
},
"skills": {
"description": "Quản lý các kỹ năng mà tác nhân có thể dùng trong cuộc trò chuyện.",
"caption": "{{available}} khả dụng · tổng {{total}}",
"views": "Chế độ xem kỹ năng",
"installedTab": "Đã cài đặt",
"discoverTab": "Khám phá",
@@ -1725,9 +1722,7 @@
"placeholderOpening": "Đang mở chủ đề mới…",
"placeholderStreaming": "Mô hình đang trả lời…",
"inputAria": "Ô nhập tin nhắn",
"sendHint": "Enter để gửi · Shift+Enter để xuống dòng",
"runRuntimeTitle": "Đang chạy · {{elapsed}}",
"goalStateStrip": "Mục tiêu · {{label}}",
"goalStateStrip": "Mục tiêu: {{label}}",
"goalStateFallback": "Mục tiêu",
"goalStateExpandAria": "Xem đầy đủ mục tiêu",
"goalStateSheetTitle": "Mục tiêu",
@@ -1953,15 +1948,10 @@
"toolMany": "Đã dùng {{count}} công cụ",
"toolSummary": "{{count}} công cụ",
"toolSummaryMany": "{{count}} công cụ",
"reasoningTools": "Suy luận · {{count}} công cụ",
"reasoningToolsSingular": "Suy luận · 1 công cụ",
"reasoning": "Suy luận",
"reasoningStreaming": "Đang suy nghĩ…",
"reasoningSummary": "Suy luận",
"agentActivitySummary": "{{reasoning}} bước · {{tools}} lần gọi công cụ",
"agentActivityToolsOnly": "{{tools}} lần gọi công cụ",
"agentActivityLiveSummary": "Đang chạy… · {{reasoning}} bước · {{tools}} lần gọi công cụ",
"agentActivityLiveToolsOnly": "Đang chạy… · {{tools}} lần gọi công cụ",
"imageAttachment": "Tệp hình ảnh đính kèm",
"videoAttachment": "Tệp video đính kèm",
"fileAttachment": "Tệp đính kèm",
@@ -2156,8 +2146,8 @@
"retryRateLimit": "Đã đạt giới hạn yêu cầu",
"retryServer": "Mô hình không khả dụng",
"retryUnknown": "Yêu cầu mô hình thất bại",
"retryWaiting": "{{error}} · thử lại sau {{seconds}} giây · lần thử {{attempt}}",
"retryExhausted": "{{error}} · đang kết thúc lượt",
"retryWaiting": "{{error}}, thử lại sau {{seconds}} giây, lần thử {{attempt}}",
"retryExhausted": "{{error}}, đang kết thúc lượt",
"cliActivityRunningOne": "Đang dùng {{name}}",
"cliActivityRanOne": "Đã dùng {{name}}",
"cliActivityFailedOne": "Không thể dùng {{name}}",
@@ -2242,7 +2232,7 @@
"paneLimit": "Tối đa {{count}} khung",
"deleteConversations": "Xóa tất cả",
"movePane": "Di chuyển khung {{title}}",
"movePaneHint": "Kéo để di chuyển · Cũng có thể dùng các phím mũi tên",
"movePaneHint": "Kéo để di chuyển. Cũng có thể dùng các phím mũi tên",
"resizePaneBoundary": "Đổi kích thước ranh giới khung {{index}}",
"promotePane": "Đặt {{title}} làm khung chính",
"paneActions": "Thao tác cho khung {{title}}",
+7 -17
View File
@@ -141,7 +141,6 @@
"ready": "已就绪",
"preparing": "正在连接 {{name}}…",
"cancelSwitch": "取消切换",
"localEnvironment": "本地 · {{name}}",
"sshHosts": "来自 SSH 配置",
"refreshHosts": "刷新 SSH 主机",
"useHost": "使用 {{host}}",
@@ -334,7 +333,7 @@
},
"documentTitle": {
"base": "nanobot",
"chat": "{{title}} · nanobot"
"chat": "{{title}}"
},
"meta": {
"description": "nanobot Web UI —— 与你的 nanobot 工作区对话。"
@@ -718,7 +717,8 @@
"presetNameDuplicate": "已存在同名预设。",
"presetNamePlaceholder": "例如:快速写作",
"advancedOptions": "高级选项",
"advancedSummary": "上下文 {{context}} · 输出上限 {{max}} Token",
"contextSummary": "上下文 {{context}}",
"outputSummary": "输出上限 {{max}} Token",
"contextWindowHint": "{{tokens}} Token",
"contextWindowError": "请输入正数 Token 数量,例如 200k、1m 或 131072。",
"maxTokens": "输出 Token 上限",
@@ -1264,7 +1264,6 @@
"filterCli": "应用",
"filterMcp": "MCP",
"enabledSummary": "{{count}} 个可用",
"caption": "{{cli}} 个应用 · {{mcp}} 个 MCP 工具",
"searchPlaceholder": "搜索工具",
"featured": "工具",
"mcpTools": "MCP 工具",
@@ -1281,7 +1280,6 @@
},
"channels": {
"description": "把聊天应用、邮箱和 WebUI 连接到 nanobot。",
"caption": "{{enabled}} 个运行中 · 共 {{total}} 个平台",
"searchPlaceholder": "搜索聊天平台",
"backToChannels": "所有平台",
"catalog": "聊天平台",
@@ -1618,7 +1616,6 @@
},
"skills": {
"description": "管理智能体在对话中可使用的技能。",
"caption": "{{available}} 个可用 · 共 {{total}} 个",
"views": "技能视图",
"installedTab": "已安装",
"discoverTab": "发现",
@@ -1925,9 +1922,7 @@
"placeholderOpening": "正在打开新话题…",
"placeholderStreaming": "模型正在回复…",
"inputAria": "消息输入框",
"sendHint": "Enter 发送 · Shift+Enter 换行",
"runRuntimeTitle": "运行中 · {{elapsed}}",
"goalStateStrip": "目标 · {{label}}",
"goalStateStrip": "目标:{{label}}",
"goalStateFallback": "目标",
"goalStateExpandAria": "查看完整目标",
"goalStateSheetTitle": "目标",
@@ -2153,15 +2148,10 @@
"toolMany": "已使用 {{count}} 个工具",
"toolSummary": "{{count}} 个工具",
"toolSummaryMany": "{{count}} 个工具",
"reasoningTools": "推理 · {{count}} 个工具",
"reasoningToolsSingular": "推理 · 1 个工具",
"reasoning": "思考过程",
"reasoningStreaming": "正在思考…",
"reasoningSummary": "推理",
"agentActivitySummary": "{{reasoning}} 步 · {{tools}} 次工具调用",
"agentActivityToolsOnly": "{{tools}} 次工具调用",
"agentActivityLiveSummary": "进行中… · {{reasoning}} 步 · {{tools}} 次工具调用",
"agentActivityLiveToolsOnly": "进行中… · {{tools}} 次工具调用",
"activityThinkingFor": "思考中 {{duration}}",
"activityThought": "已思考",
"activityThoughtFor": "思考了 {{duration}}",
@@ -2328,8 +2318,8 @@
"retryRateLimit": "请求频率受限",
"retryServer": "模型服务不可用",
"retryUnknown": "模型请求失败",
"retryWaiting": "{{error}} · {{seconds}} 秒后重试 · 第 {{attempt}} 次",
"retryExhausted": "{{error}} · 正在结束本次任务",
"retryWaiting": "{{error}},{{seconds}} 秒后重试(第 {{attempt}} 次)。",
"retryExhausted": "{{error}},正在结束本次任务。",
"cliActivityRunningOne": "正在使用 {{name}}",
"cliActivityRanOne": "已使用 {{name}}",
"cliActivityFailedOne": "无法使用 {{name}}",
@@ -2442,7 +2432,7 @@
"paneLimit": "最多 {{count}} 个窗格",
"deleteConversations": "删除所有对话",
"movePane": "移动 {{title}} 窗格",
"movePaneHint": "拖动换位 · 也可以使用方向键",
"movePaneHint": "拖动换位,也可以使用方向键。",
"resizePaneBoundary": "调整窗格边界 {{index}}",
"promotePane": "将 {{title}} 设为主窗格",
"paneActions": "{{title}} 窗格操作",
+8 -18
View File
@@ -141,7 +141,6 @@
"ready": "已就绪",
"preparing": "正在连接 {{name}}…",
"cancelSwitch": "取消切换",
"localEnvironment": "Local · {{name}}",
"sshHosts": "From your SSH config",
"refreshHosts": "Refresh SSH hosts",
"useHost": "Use {{host}}",
@@ -156,7 +155,7 @@
"verifyTitle": "Verify this server",
"verifyDescription": "Before connecting for the first time, compare this SSH fingerprint with your server console or administrator.",
"verifyHint": "Continue only if it matches. Only this server's public key is saved; your system SSH config is unchanged.",
"verifyConnect": "Fingerprint matches · Connect",
"verifyConnect": "Connect to verified host",
"title": "Remote connections",
"description": "Connect to nanobot on a server. Chats and settings stay there.",
"local": "Local nanobot",
@@ -334,7 +333,7 @@
},
"documentTitle": {
"base": "nanobot",
"chat": "{{title}} · nanobot"
"chat": "{{title}}"
},
"meta": {
"description": "nanobot Web UI —— 與你的 nanobot 工作區對話。"
@@ -834,7 +833,8 @@
"presetNameDuplicate": "已有同名預設。",
"presetNamePlaceholder": "例如:快速寫作",
"advancedOptions": "進階選項",
"advancedSummary": "上下文 {{context}} · 輸出上限 {{max}} Token",
"contextSummary": "上下文 {{context}}",
"outputSummary": "輸出上限 {{max}} Token",
"contextWindowHint": "{{tokens}} Token",
"contextWindowError": "請輸入正數 Token 數量,例如 200k、1m 或 131072。",
"maxTokens": "輸出 Token 上限",
@@ -1064,7 +1064,6 @@
"filterCli": "應用程式",
"filterMcp": "MCP",
"enabledSummary": "{{count}} 個就緒",
"caption": "{{cli}} 個應用程式 · {{mcp}} 個 MCP 工具",
"searchPlaceholder": "搜尋工具",
"featured": "工具",
"mcpTools": "MCP 工具",
@@ -1081,7 +1080,6 @@
},
"channels": {
"description": "將聊天應用程式、電子郵件與 WebUI 連線至 nanobot。",
"caption": "{{enabled}} 個執行中 · 共 {{total}} 個聊天平台",
"searchPlaceholder": "搜尋通訊管道",
"backToChannels": "所有通訊管道",
"catalog": "通訊管道",
@@ -1418,7 +1416,6 @@
},
"skills": {
"description": "管理智能體在對話中可使用的技能。",
"caption": "{{available}} 個可用 · 共 {{total}} 個",
"views": "技能檢視",
"installedTab": "已安裝",
"discoverTab": "探索",
@@ -1725,9 +1722,7 @@
"placeholderOpening": "正在開啟新話題…",
"placeholderStreaming": "模型正在回覆…",
"inputAria": "訊息輸入框",
"sendHint": "Enter 送出 · Shift+Enter 換行",
"runRuntimeTitle": "執行中 · {{elapsed}}",
"goalStateStrip": "目標 · {{label}}",
"goalStateStrip": "目標:{{label}}",
"goalStateFallback": "目標",
"goalStateExpandAria": "檢視完整目標",
"goalStateSheetTitle": "目標",
@@ -1953,15 +1948,10 @@
"toolMany": "已使用 {{count}} 個工具",
"toolSummary": "{{count}} 個工具",
"toolSummaryMany": "{{count}} 個工具",
"reasoningTools": "推理 · {{count}} 個工具",
"reasoningToolsSingular": "推理 · 1 個工具",
"reasoning": "思考過程",
"reasoningStreaming": "正在思考…",
"reasoningSummary": "推理",
"agentActivitySummary": "{{reasoning}} 步 · {{tools}} 次工具呼叫",
"agentActivityToolsOnly": "{{tools}} 次工具呼叫",
"agentActivityLiveSummary": "進行中… · {{reasoning}} 步 · {{tools}} 次工具呼叫",
"agentActivityLiveToolsOnly": "進行中… · {{tools}} 次工具呼叫",
"imageAttachment": "圖片附件",
"videoAttachment": "影片附件",
"fileAttachment": "檔案附件",
@@ -2158,8 +2148,8 @@
"retryRateLimit": "請求頻率受限",
"retryServer": "模型服務無法使用",
"retryUnknown": "模型請求失敗",
"retryWaiting": "{{error}} · {{seconds}} 秒後重試 · 第 {{attempt}} 次",
"retryExhausted": "{{error}} · 正在結束本輪",
"retryWaiting": "{{error}},{{seconds}} 秒後重試,第 {{attempt}} 次",
"retryExhausted": "{{error}},正在結束本輪",
"cliActivityRunningMany": "正在使用 {{count}} 個 CLI 應用程式",
"cliActivityRanMany": "已使用 {{count}} 個 CLI 應用程式",
"cliActivityFailedMany": "{{count}} 個 CLI 應用程式失敗",
@@ -2242,7 +2232,7 @@
"paneLimit": "最多 {{count}} 個窗格",
"deleteConversations": "刪除所有對話",
"movePane": "移動 {{title}} 窗格",
"movePaneHint": "拖曳換位 · 也可以使用方向鍵",
"movePaneHint": "拖曳換位,也可以使用方向鍵",
"resizePaneBoundary": "調整窗格邊界 {{index}}",
"promotePane": "將 {{title}} 設為主窗格",
"paneActions": "{{title}} 窗格操作",
+22
View File
@@ -0,0 +1,22 @@
import { cleanup, render, screen, within } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { afterEach, expect, it } from "vitest";
import { ActivityStep } from "@/components/thread/activity/ActivityStep";
afterEach(cleanup);
it("keeps truncated activity details available on keyboard focus", async () => {
render(<ActivityStep label="Used Blender" detail="--json project new" />);
const detail = screen.getByText("--json project new");
Object.defineProperties(detail, {
scrollWidth: { value: 240 },
clientWidth: { value: 80 },
});
await userEvent.tab();
expect(screen.getByLabelText("Used Blender, --json project new")).toHaveFocus();
const tooltip = await screen.findByRole("tooltip");
expect(within(tooltip).getByText(/Used Blender/)).toHaveTextContent("--json project new");
});
+23 -23
View File
@@ -160,8 +160,8 @@ describe("AgentActivityCluster", () => {
expect(screen.getByText(`Searched files “${query}”`)).toBeInTheDocument();
expect(screen.getByText(`Reading file ${path}`)).toBeInTheDocument();
expect(screen.getByText("Using Blender · --json --background scene.blend")).toBeInTheDocument();
expect(screen.getByText("Opening example.com · Browserbase")).toBeInTheDocument();
expect(screen.getByLabelText("Using Blender, --json --background scene.blend")).toBeInTheDocument();
expect(screen.getByLabelText("Opening example.com, Browserbase")).toBeInTheDocument();
expect(screen.getByText("Edited")).toBeInTheDocument();
expect(screen.getByTestId("activity-file-reference")).toHaveTextContent(path);
@@ -169,19 +169,19 @@ describe("AgentActivityCluster", () => {
expect(screen.getByText(`文件搜索完成 “${query}”`)).toBeInTheDocument();
expect(screen.getByText(`正在读取文件 ${path}`)).toBeInTheDocument();
expect(screen.getByText("正在使用 Blender · --json --background scene.blend")).toBeInTheDocument();
expect(screen.getByText("正在打开 example.com · Browserbase")).toBeInTheDocument();
expect(screen.getByLabelText("正在使用 Blender, --json --background scene.blend")).toBeInTheDocument();
expect(screen.getByLabelText("正在打开 example.com, Browserbase")).toBeInTheDocument();
expect(screen.getByText("编辑")).toBeInTheDocument();
expect(screen.getByTestId("activity-file-reference")).toHaveTextContent(path);
await act(async () => setAppLanguage("ja"));
expect(screen.getByText(`“${query}” · ファイル検索完了`)).toBeInTheDocument();
expect(screen.getByText(`${path} · ファイルを読み取り中`)).toBeInTheDocument();
expect(screen.getByText("Blender を使用中 · --json --background scene.blend")).toBeInTheDocument();
expect(screen.getByText("example.com · 開いています · Browserbase")).toBeInTheDocument();
expect(screen.getByText(`“${query}” ファイル検索完了`)).toBeInTheDocument();
expect(screen.getByText(`${path} ファイルを読み取り中`)).toBeInTheDocument();
expect(screen.getByLabelText("Blender を使用中, --json --background scene.blend")).toBeInTheDocument();
expect(screen.getByLabelText("example.com 開いています, Browserbase")).toBeInTheDocument();
expect(screen.getByTestId("activity-file-reference").closest('[data-testid="activity-step"]'))
.toHaveTextContent(`${path} · 編集`);
.toHaveTextContent(`${path} 編集`);
});
it("loads deferred trace details only after completed activity is expanded", async () => {
@@ -231,7 +231,7 @@ describe("AgentActivityCluster", () => {
);
expect(
screen.getByText("Connection failed · retrying in 5s · attempt 1/4"),
screen.getByText("Connection failed. Retrying in 5s (attempt 1/4)."),
).toBeInTheDocument();
});
@@ -618,7 +618,7 @@ describe("AgentActivityCluster", () => {
retryStatus={{ state: "waiting", attempt: 1, max_attempts: 4, error_kind: "connection" }}
/>,
);
expect(screen.getByRole("status", { name: "Connection failed · retrying in 0s · attempt 1/4" }))
expect(screen.getByRole("status", { name: "Connection failed. Retrying in 0s (attempt 1/4)." }))
.toBeVisible();
unmount();
render(<AgentActivityCluster messages={messages} isTurnStreaming={false} hasBodyBelow />);
@@ -1117,7 +1117,7 @@ describe("AgentActivityCluster", () => {
/>,
);
expect(screen.getByText("Using Blender · --json --background scene.blend")).toBeInTheDocument();
expect(screen.getByLabelText("Using Blender, --json --background scene.blend")).toBeInTheDocument();
expect(screen.getByTestId("activity-cli-logo-blender")).toBeInTheDocument();
expect(screen.queryByText(/run_cli_app/)).not.toBeInTheDocument();
});
@@ -1165,8 +1165,8 @@ describe("AgentActivityCluster", () => {
/>,
);
const searchRow = screen.getByText("Searched nanobot architecture").closest('[data-testid="activity-step"]');
const cliRow = screen.getByText("Used Blender · --json project new").closest('[data-testid="activity-step"]');
const searchRow = screen.getByLabelText("Searched the web, nanobot architecture").closest('[data-testid="activity-step"]');
const cliRow = screen.getByLabelText("Used Blender, --json project new").closest('[data-testid="activity-step"]');
const fetchRow = screen.getByText("example.com/diagram").closest('[data-testid="activity-step"]');
expect(searchRow).not.toBeNull();
@@ -1211,7 +1211,7 @@ describe("AgentActivityCluster", () => {
/>,
);
expect(screen.getByText("Searched agent frameworks")).toBeInTheDocument();
expect(screen.getByLabelText("Searched the web, agent frameworks")).toBeInTheDocument();
expect(screen.queryByText("2 sources")).not.toBeInTheDocument();
const openAiLink = screen.getByText("OpenAI Agents SDK").closest("a");
@@ -1231,7 +1231,7 @@ describe("AgentActivityCluster", () => {
expect(screen.getByTestId("activity-web-favicon-anthropic.com")).toBeInTheDocument();
expect(screen.queryByText("Internal dashboard")).not.toBeInTheDocument();
expect(screen.queryByText("Build and deploy agentic applications.")).not.toBeInTheDocument();
const searchStep = screen.getByText("Searched agent frameworks").closest(
const searchStep = screen.getByLabelText("Searched the web, agent frameworks").closest(
'[data-testid="activity-step"]',
);
const openAiStep = openAiLink!.closest('[data-testid="activity-step"]');
@@ -1273,7 +1273,7 @@ describe("AgentActivityCluster", () => {
);
fireEvent.click(screen.getByRole("button", { name: /^Worked/ }));
expect(screen.getByText("Searched X · nanobot oauth")).toBeInTheDocument();
expect(screen.getByLabelText("Searched X, nanobot oauth")).toBeInTheDocument();
expect(screen.queryByText(/Completed X search/i)).not.toBeInTheDocument();
expect(screen.getAllByTestId("activity-step")).toHaveLength(1);
});
@@ -1308,7 +1308,7 @@ describe("AgentActivityCluster", () => {
fireEvent.click(screen.getByRole("button", { name: /^Worked/ }));
expect(screen.queryByText(/signed-secret|secret1234|url-secret/)).not.toBeInTheDocument();
expect(screen.getByText("Searched release notes access_token=<redacted>")).toBeInTheDocument();
expect(screen.getByLabelText("Searched the web, release notes access_token=<redacted>")).toBeInTheDocument();
expect(screen.getByText("Release <redacted>")).toBeInTheDocument();
expect(screen.getByText("Release <redacted>").closest("a")).toHaveAttribute(
"href",
@@ -1357,7 +1357,7 @@ describe("AgentActivityCluster", () => {
);
expect(screen.getAllByTestId("activity-step")).toHaveLength(1);
expect(screen.getByText("Could not search LinkedIn · Evomap startup")).toBeInTheDocument();
expect(screen.getByLabelText("Could not search LinkedIn, Evomap startup")).toBeInTheDocument();
expect(screen.queryByText(/site:linkedin/i)).not.toBeInTheDocument();
expect(screen.queryByText("Web research")).not.toBeInTheDocument();
});
@@ -1411,7 +1411,7 @@ describe("AgentActivityCluster", () => {
fireEvent.click(screen.getByRole("button", { name: "Worked" }));
const row = screen.getByText("Could not use GitHub · --json repo view").closest(
const row = screen.getByLabelText("Could not use GitHub, --json repo view").closest(
'[data-testid="activity-step"]',
);
expect(row).toBeInTheDocument();
@@ -1445,7 +1445,7 @@ describe("AgentActivityCluster", () => {
/>,
);
expect(screen.getByText("Opening example.com · Browserbase")).toBeInTheDocument();
expect(screen.getByLabelText("Opening example.com, Browserbase")).toBeInTheDocument();
expect(screen.queryByText("Using")).not.toBeInTheDocument();
expect(screen.queryByText(/browser_navigate/)).not.toBeInTheDocument();
expect(screen.getByTestId("activity-mcp-logo-browserbase")).toBeInTheDocument();
@@ -1606,7 +1606,7 @@ describe("AgentActivityCluster", () => {
);
fireEvent.click(screen.getByRole("button", { name: /^Worked/ }));
const run = screen.getByText(/Reviewed sources.*2 files/).closest('[data-testid="activity-step"]');
const run = screen.getByLabelText(/Reviewed sources.*2 files/).closest('[data-testid="activity-step"]');
expect(run).toBeInTheDocument();
expect(screen.queryByText(firstPath)).not.toBeInTheDocument();
expect(screen.queryByText(secondPath)).not.toBeInTheDocument();
@@ -1708,7 +1708,7 @@ describe("AgentActivityCluster", () => {
fireEvent.click(screen.getByRole("button", { name: "Worked" }));
expect(screen.getByText("Ran command cat << 'EOF' | bash · script, 6 lines")).toBeInTheDocument();
expect(screen.getByLabelText("Ran command cat << 'EOF' | bash, script, 6 lines")).toBeInTheDocument();
expect(screen.queryByText(/SECRET_TOKEN/)).not.toBeInTheDocument();
expect(screen.queryByText(/for id in/)).not.toBeInTheDocument();
expect(screen.queryByText(/^Done$/)).not.toBeInTheDocument();
+9 -9
View File
@@ -698,7 +698,7 @@ describe("App layout", () => {
expect(await screen.findByRole("heading", { name: "Channels" })).toBeVisible();
expect(window.location.hash).toBe("#/channels");
expect(channels).toHaveAttribute("aria-current", "page");
expect(document.title).toBe("Channels · nanobot");
expect(document.title).toBe("Channels");
fireEvent.click(within(sidebar).getByRole("button", { name: "New topic" }));
await waitFor(() => expect(window.location.hash).toBe("#/new"));
fireEvent.keyDown(window, { key: "$", code: "Digit4", ctrlKey: true, shiftKey: true });
@@ -918,7 +918,7 @@ describe("App layout", () => {
expect(within(screen.getByTestId("thread-header")).getByText(
"first private message",
)).toBeInTheDocument();
await waitFor(() => expect(document.title).toBe("first private message · nanobot"));
await waitFor(() => expect(document.title).toBe("first private message"));
expect(screen.queryByRole("button", { name: "Temporary chat" })).not.toBeInTheDocument();
fireEvent.click(within(sidebar).getByRole("button", {
@@ -1390,7 +1390,7 @@ describe("App layout", () => {
"aria-current",
"page",
);
expect(document.title).toBe("Skills · nanobot");
expect(document.title).toBe("Skills");
fireEvent.click(screen.getByRole("button", { name: "Back to chat" }));
expect(await screen.findByText(HERO_GREETING_PATTERN)).toBeInTheDocument();
@@ -1796,7 +1796,7 @@ describe("App layout", () => {
"aria-current",
"page",
);
expect(document.title).toBe("Automations · nanobot");
expect(document.title).toBe("Automations");
});
@@ -2085,7 +2085,7 @@ describe("App layout", () => {
expect(screen.queryByText("近期无问题")).not.toBeInTheDocument();
expect(screen.queryByText("Workspace automations")).not.toBeInTheDocument();
expect(screen.queryByRole("button", { name: "刷新" })).not.toBeInTheDocument();
expect(document.title).toBe("自动任务 · nanobot");
expect(document.title).toBe("自动任务");
});
it("resizes the sidebar, collapses at the drag threshold and restores its saved width", async () => {
@@ -2456,7 +2456,7 @@ describe("App layout", () => {
expect(screen.queryByRole("tooltip")).not.toBeInTheDocument();
await user.click(await within(sheet).findByRole("button", { name: `${title} mobile chat` }));
await waitFor(() => expect(screen.queryByRole("dialog")).not.toBeInTheDocument());
await waitFor(() => expect(document.title).toBe(`${title} mobile chat · nanobot`));
await waitFor(() => expect(document.title).toBe(`${title} mobile chat`));
expect(screen.getByRole("button", { name: `${title} mobile chat` }))
.toHaveAttribute("aria-current", "page");
}
@@ -2874,7 +2874,7 @@ describe("App layout", () => {
render(<App />);
await waitFor(() => expect(connectSpy).toHaveBeenCalled());
await waitFor(() => expect(document.title).toBe("Active after reload · nanobot"));
await waitFor(() => expect(document.title).toBe("Active after reload"));
const sidebar = screen.getByRole("navigation", { name: "Sidebar navigation" });
expect(
within(sidebar).getByRole("button", { name: /^Active after reload$/ }),
@@ -3048,7 +3048,7 @@ describe("App layout", () => {
"duration-200",
"motion-reduce:animate-none",
);
expect(document.title).toBe("Apps · nanobot");
expect(document.title).toBe("Apps");
fireEvent.click(within(sidebar).getByRole("button", { name: "Skills" }));
@@ -3068,7 +3068,7 @@ describe("App layout", () => {
"data-active-id",
"utility:skills",
);
expect(document.title).toBe("Skills · nanobot");
expect(document.title).toBe("Skills");
});
it("returns from settings to the blank start page when no session was active", async () => {
+3 -3
View File
@@ -119,7 +119,7 @@ describe("sidebar action focus", () => {
const move = await screen.findByRole("menuitem", { name: "Move to", exact: true });
act(() => move.focus());
await user.keyboard("{ArrowRight}");
await screen.findByRole("menuitem", { name: "Group · 2/4" });
await screen.findByRole("menuitem", { name: "Group 2/4" });
await user.keyboard("{Escape}");
await waitFor(() => expect(screen.queryByRole("menu")).not.toBeInTheDocument());
await waitFor(() => expect(trigger).toHaveFocus());
@@ -134,10 +134,10 @@ describe("sidebar action focus", () => {
const move = await screen.findByRole("menuitem", { name: "Move to", exact: true });
act(() => move.focus());
await user.keyboard("{ArrowRight}");
await screen.findByRole("menuitem", { name: "Group · 2/4" });
await screen.findByRole("menuitem", { name: "Group 2/4" });
await user.keyboard("{ArrowLeft}");
await waitFor(() => expect(move).toHaveFocus());
expect(screen.queryByRole("menuitem", { name: "Group · 2/4" })).not.toBeInTheDocument();
expect(screen.queryByRole("menuitem", { name: "Group 2/4" })).not.toBeInTheDocument();
await user.click(screen.getByRole("menuitem", { name: "Rename", exact: true }));
const input = await screen.findByPlaceholderText("Topic name");
await waitFor(() => expect(screen.queryByRole("menu")).not.toBeInTheDocument());
+3 -3
View File
@@ -372,12 +372,12 @@ describe("ChatList", () => {
expect(screen.queryByRole("menuitem", { name: "Target pane" }))
.not.toBeInTheDocument();
const fullTarget = await screen.findByRole("menuitem", {
name: "Existing group · 4/4",
name: "Existing group 4/4",
});
expect(fullTarget).toHaveAttribute("aria-disabled", "true");
fireEvent.click(fullTarget);
expect(onAttachPane).not.toHaveBeenCalled();
fireEvent.click(await screen.findByRole("menuitem", { name: "Fine group · 1/4" }));
fireEvent.click(await screen.findByRole("menuitem", { name: "Fine group 1/4" }));
expect(onAttachPane).toHaveBeenCalledWith("websocket:solo", "tab:fine");
});
@@ -635,7 +635,7 @@ describe("ChatList", () => {
}), { button: 0, ctrlKey: false });
const moveTo = await screen.findByRole("menuitem", { name: "Move to" });
fireEvent.pointerMove(moveTo, { pointerType: "mouse" });
fireEvent.click(await screen.findByRole("menuitem", { name: "Target tab · 2/4" }));
fireEvent.click(await screen.findByRole("menuitem", { name: "Target tab 2/4" }));
expect(onAttachPane).toHaveBeenCalledWith("websocket:child", "websocket:target");
fireEvent.pointerDown(screen.getByRole("button", {
+9 -7
View File
@@ -35,11 +35,13 @@ describe("host switcher", () => {
it("announces the host only once when its display name is the hostname", async () => {
const value = { ...picker(1), name: "team-host", hostname: "team-host" };
render(<HostNavigationContext.Provider value={value}><HostSwitcher /></HostNavigationContext.Provider>);
expect(screen.getByRole("status").textContent).toBe("team-host · Connected");
expect(screen.getByRole("status").textContent).toBe("team-host, Connected");
const trigger = screen.getByRole("button", { name: "Switch host" });
expect(trigger).not.toHaveAttribute("title");
await userEvent.hover(trigger);
expect(await screen.findByRole("tooltip")).toHaveTextContent("team-host · Connected");
const tooltip = await screen.findByRole("tooltip");
expect(within(tooltip).getByText("team-host")).toBeVisible();
expect(within(tooltip).getByText("Connected")).toBeVisible();
});
it("does not borrow the local socket's Connected status while restoring a remote", () => {
@@ -61,7 +63,7 @@ describe("host switcher", () => {
expect(within(trigger).getByText("Local", { exact: true })).toBeVisible();
await userEvent.hover(trigger);
expect(await screen.findByRole("tooltip")).toHaveTextContent("Connecting to Server 1");
expect(within(trigger).getByRole("status")).toHaveTextContent("Local · My-Mac · Connected · Connecting to Server 1");
expect(within(trigger).getByRole("status")).toHaveTextContent("Local, My-Mac, Connected. Connecting to Server 1");
await userEvent.click(trigger);
expect(screen.getByRole("menuitem", { name: "Local nanobot My-Mac" })).toHaveAttribute("aria-current", "true");
expect(screen.getByRole("menuitem", { name: "Server 1 ubuntu@host-1.test" })).not.toHaveAttribute("aria-current");
@@ -71,7 +73,7 @@ describe("host switcher", () => {
const value = { ...picker(2), error: "Destination SSH is unreachable" };
render(<HostNavigationContext.Provider value={value}><HostSwitcher /></HostNavigationContext.Provider>);
const trigger = screen.getByRole("button", { name: "Switch host" });
expect(within(trigger).getByRole("status")).toHaveTextContent("Local · My-Mac · Connected");
expect(within(trigger).getByRole("status")).toHaveTextContent("Local, My-Mac, Connected");
await userEvent.hover(trigger);
expect(await screen.findByRole("tooltip")).toHaveTextContent(value.error);
expect(trigger).not.toHaveTextContent("Offline");
@@ -82,7 +84,7 @@ describe("host switcher", () => {
it("keeps a truly disconnected host offline independently of switch errors", () => {
const value = { ...picker(2), offline: true, name: "Team server", hostname: "team-host" };
render(<HostNavigationContext.Provider value={value}><HostSwitcher /></HostNavigationContext.Provider>);
expect(screen.getByRole("status")).toHaveTextContent("Team server · team-host · Server connection lost");
expect(screen.getByRole("status")).toHaveTextContent("Team server, team-host, Server connection lost");
});
it("keeps remote sidebar identity and connection status separate from pending or failed switches", async () => {
@@ -90,9 +92,9 @@ describe("host switcher", () => {
const view = render(<HostNavigationContext.Provider value={value}><HostSwitcher /></HostNavigationContext.Provider>);
const trigger = screen.getByRole("button", { name: "Switch host" });
expect(within(trigger).getByText("Team server", { exact: true })).toBeVisible();
expect(within(trigger).getByRole("status")).toHaveTextContent("Team server · team-host · Connected · Connecting to Another server");
expect(within(trigger).getByRole("status")).toHaveTextContent("Team server, team-host, Connected. Connecting to Another server");
view.rerender(<HostNavigationContext.Provider value={{ ...value, pendingName: undefined, error: "Destination SSH is unreachable" }}><HostSwitcher /></HostNavigationContext.Provider>);
expect(within(trigger).getByRole("status")).toHaveTextContent("Team server · team-host · Connected");
expect(within(trigger).getByRole("status")).toHaveTextContent("Team server, team-host, Connected");
await userEvent.hover(trigger);
expect(await screen.findByRole("tooltip")).toHaveTextContent("Destination SSH is unreachable");
});
+5 -5
View File
@@ -60,8 +60,8 @@ describe("localized agent activity contracts", () => {
expect(generic.detail).toBe("src/app.tsx");
expect(command.detail).toBe("bun run test");
expect(browser.target).toBe("Enter");
expect(search).toContain("release notes");
expect([generic.label, command.label, browser.action, search].join(" "))
expect(search.detail).toBe("release notes");
expect([generic.label, command.label, browser.action, search.label].join(" "))
.not.toMatch(/message\.agentActivity|{{/);
}
for (const count of [0, 1, 2]) {
@@ -105,13 +105,13 @@ describe("localized agent activity contracts", () => {
const original = JSON.stringify(messages);
render(<AgentActivityCluster messages={messages} isTurnStreaming={false} hasBodyBelow expanded />);
expect(screen.getByText("Ran command bun run test")).toBeInTheDocument();
expect(screen.getByText("Could not search release notes")).toBeInTheDocument();
expect(screen.getByLabelText("Could not search the web, release notes")).toBeInTheDocument();
await act(async () => setAppLanguage("zh-CN"));
expect(screen.getByText("已运行命令 bun run test")).toBeInTheDocument();
expect(screen.getByText("无法搜索 release notes")).toBeInTheDocument();
expect(screen.getByLabelText("无法搜索 网页, release notes")).toBeInTheDocument();
await act(async () => setAppLanguage("en"));
expect(screen.getByText("Could not search release notes")).toBeInTheDocument();
expect(screen.getByLabelText("Could not search the web, release notes")).toBeInTheDocument();
expect(JSON.stringify(messages)).toBe(original);
});
-1
View File
@@ -76,7 +76,6 @@ const LOCALIZED_SETTINGS_COPY_KEYS = [
"settings.sections.capabilities",
"settings.sections.apps",
"settings.apps.description",
"settings.apps.caption",
"settings.apps.restartRequired",
"settings.mcp.connectingAccount",
"settings.mcp.continueSignIn",
+1 -1
View File
@@ -690,7 +690,7 @@ describe("MessageBubble", () => {
const timestamp = document.querySelector("[data-message-timestamp]")!;
const automation = document.querySelector("[data-automation-trigger]")!;
expect(timestamp).toHaveTextContent(formatMessageEndTime(completedAt));
expect(automation).toHaveTextContent("Triggered automatically · drink water");
expect(automation).toHaveTextContent("Triggered automatically drink water");
expect(timestamp.compareDocumentPosition(automation) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy();
});
+2 -2
View File
@@ -157,7 +157,7 @@ describe("ModelPresetBadge selected preset tooltip", () => {
expect(container.querySelector("[title]")).toBeNull();
await user.hover(trigger);
const tooltip = await screen.findByRole("tooltip");
expect(tooltip).toHaveTextContent("zhipu · glm-5");
expect(tooltip).toHaveTextContent("zhipu glm-5");
expect(tooltip).not.toHaveTextContent("codex");
await user.click(trigger);
expect(await screen.findByRole("listbox")).toBeInTheDocument();
@@ -179,7 +179,7 @@ describe("ModelPresetBadge selected preset tooltip", () => {
expect(trigger).toHaveAttribute("tabindex", "0");
fireEvent.focus(trigger);
expect(await screen.findByRole("tooltip")).toHaveTextContent(
"zhipu · glm-5",
"zhipu glm-5",
);
fireEvent.keyDown(trigger, { key: "Escape" });
await waitFor(() => expect(screen.queryByRole("tooltip")).not.toBeInTheDocument());
+15 -15
View File
@@ -103,8 +103,8 @@ describe("remote instance UX", () => {
compatibility: { status, client_version: "1.0.0", host_version: "2.0.0" } }] });
mocks.request.mockRejectedValue(new Error(code));
view();
await screen.findByText(i18n.t(`remote.compatibility.${status}`));
expect(screen.queryByText("Server connection lost", { exact: true })).not.toBeInTheDocument();
await screen.findByRole("region", { name: i18n.t(`remote.compatibility.${status}`) });
expect(screen.queryByRole("region", { name: "Server connection lost" })).not.toBeInTheDocument();
fireEvent.click(screen.getByRole("button", { name: "Version & compatibility" }));
expect(within(await screen.findByRole("dialog")).getByRole("status")).toHaveTextContent(i18n.t(`remote.compatibility.${status}`));
expect(screen.queryByRole("textbox", { name: "SSH address" })).not.toBeInTheDocument();
@@ -182,7 +182,7 @@ describe("remote instance UX", () => {
expect(screen.getByTitle("nanobot on 腾讯云 nanobot")).toBe(frame);
expect(frame).toHaveAttribute("src", connection.url);
expect(readSelectedRemote()).toMatchObject({ id: profile.id, name: "腾讯云 nanobot" });
expect(document.title).toBe("腾讯云 nanobot · nanobot");
expect(document.title).toBe("腾讯云 nanobot");
expect(source.postMessage).toHaveBeenLastCalledWith(expect.objectContaining({ type: "init", name: "腾讯云 nanobot" }), "http://127.0.0.1:23456");
expect(mocks.request.mock.calls.map(([action]) => action)).toEqual(["remote.connect", "remote.rename"]);
fireEvent.click(screen.getByRole("button", { name: "腾讯云 nanobot ubuntu@example.test" }));
@@ -672,7 +672,7 @@ describe("remote instance UX", () => {
: action === "remote.fingerprint" ? { fingerprint: "SHA256:verified-test", challenge: "nonce" } : {});
await addAndInspect();
await screen.findByText("SHA256:verified-test");
fireEvent.click(screen.getByRole("button", { name: "Fingerprint matches · Connect" }));
fireEvent.click(screen.getByRole("button", { name: "Connect to verified host" }));
expect(await screen.findByText("No nanobot configuration found")).toBeVisible();
expect(mocks.inspect).toHaveBeenCalledTimes(2);
expect(mocks.request.mock.calls.some(([action]) => action === "remote.connect")).toBe(false);
@@ -801,7 +801,7 @@ describe("remote instance UX", () => {
expect(frame).toHaveAttribute("src", connection.url);
expect(frame).toHaveAttribute("sandbox", expect.not.stringContaining("allow-top-navigation"));
expect(document.querySelector('[data-host-view="local"]')).toHaveAttribute("inert");
expect(within(screen.getByRole("button", { name: "Switch host" })).getByRole("status")).toHaveTextContent("Team server · team-host");
expect(within(screen.getByRole("button", { name: "Switch host" })).getByRole("status")).toHaveTextContent("Team server, team-host");
expect(mocks.request).toHaveBeenCalledWith("remote.connect", { id: profile.id }, 65_000);
expect(window.sessionStorage.getItem("nanobot.remote-instance")).not.toContain("secret");
expect(readRecentRemotes()).toEqual([profile.id]);
@@ -900,7 +900,7 @@ describe("remote instance UX", () => {
rememberSelectedRemote(connection);
mocks.request.mockRejectedValue(new Error("ssh_unreachable"));
view();
await screen.findByText("Server connection lost");
await screen.findByRole("region", { name: "Server connection lost" });
expect(screen.queryByText("Local conversations")).not.toBeVisible();
expect(screen.getByRole("button", { name: "Reconnect" })).toBeInTheDocument();
fireEvent.click(screen.getByRole("button", { name: "Back to local nanobot" }));
@@ -927,7 +927,7 @@ describe("remote instance UX", () => {
rememberSelectedRemote(connection);
mocks.request.mockRejectedValue(new Error("ssh_unreachable"));
view();
await screen.findByText("Server connection lost");
await screen.findByRole("region", { name: "Server connection lost" });
fireEvent.click(screen.getByRole("button", { name: "Back to local nanobot" }));
await screen.findByText("Local conversations");
mocks.request.mockResolvedValue(connection);
@@ -1304,7 +1304,7 @@ describe("remote instance UX", () => {
await screen.findByText("SHA256:example");
expect(mocks.request.mock.calls.some(([action]) => action === "remote.trust")).toBe(false);
mocks.request.mockImplementation(async (action: string) => action === "remote.connect" ? connection : {});
fireEvent.click(screen.getByRole("button", { name: "Fingerprint matches · Connect" }));
fireEvent.click(screen.getByRole("button", { name: "Connect to verified host" }));
await readyRemote();
expect(mocks.request).toHaveBeenCalledWith("remote.trust", { id: profile.id, challenge: "one-use" }, 65_000);
});
@@ -1317,14 +1317,14 @@ describe("remote instance UX", () => {
const frame = await readyRemote();
fireEvent.load(frame);
await act(async () => { tick?.(); });
expect(screen.queryByText("Server connection lost")).not.toBeInTheDocument();
expect(screen.queryByRole("region", { name: "Server connection lost" })).not.toBeInTheDocument();
await act(async () => { tick?.(); });
await screen.findByText("Server connection lost");
await screen.findByRole("region", { name: "Server connection lost" });
expect(screen.getByTitle("nanobot on Team server")).toBeInTheDocument();
expect(frame.parentElement).toHaveAttribute("inert");
expect(document.querySelector('[data-host-view="local"]')).toHaveAttribute("inert");
fireEvent.click(screen.getByRole("button", { name: "Reconnect" }));
await waitFor(() => expect(screen.queryByText("Server connection lost")).not.toBeInTheDocument());
await waitFor(() => expect(screen.queryByRole("region", { name: "Server connection lost" })).not.toBeInTheDocument());
expect(screen.queryByText("Opening your server…")).not.toBeInTheDocument();
expect(screen.getByTitle("nanobot on Team server")).toBe(frame);
expect(frame.parentElement).not.toHaveAttribute("inert");
@@ -1340,11 +1340,11 @@ describe("remote instance UX", () => {
expect(mocks.read).toHaveBeenCalledTimes(1);
await act(async () => { document.dispatchEvent(new Event("visibilitychange")); });
expect(mocks.read).toHaveBeenCalledTimes(2);
await screen.findByText("Server connection lost");
await screen.findByRole("region", { name: "Server connection lost" });
mocks.read.mockResolvedValue({ available: true, profiles: [{ ...profile, connected: true }] });
await act(async () => { window.dispatchEvent(new Event("pageshow")); });
expect(mocks.read).toHaveBeenCalledTimes(3);
expect(screen.queryByText("Server connection lost")).not.toBeInTheDocument();
expect(screen.queryByRole("region", { name: "Server connection lost" })).not.toBeInTheDocument();
expect(screen.getByTitle("nanobot on Team server")).toBe(frame);
expect(readSelectedRemote()?.id).toBe(profile.id);
expect(mocks.request.mock.calls.filter(([action]) => action === "remote.connect")).toHaveLength(1);
@@ -1392,11 +1392,11 @@ describe("remote instance UX", () => {
rememberSelectedRemote(connection);
mocks.request.mockRejectedValue(new Error("ssh_unreachable"));
view();
await screen.findByText("Server connection lost");
await screen.findByRole("region", { name: "Server connection lost" });
fireEvent.pointerDown(screen.getByRole("button", { name: "Switch host" }), { button: 0, ctrlKey: false });
fireEvent.click(await screen.findByRole("button", { name: "Close" }));
fireEvent.keyDown(screen.getByRole("menu"), { key: "Escape" });
expect(screen.getByText("Server connection lost")).toBeVisible();
expect(screen.getByRole("region", { name: "Server connection lost" })).toBeVisible();
expect(screen.getByRole("button", { name: "Reconnect" })).toBeVisible();
expect(screen.queryByText("Opening your server…")).not.toBeInTheDocument();
});
+2 -1
View File
@@ -136,7 +136,8 @@ describe("Settings system domains", () => {
expect(await screen.findByText("Computer Use")).toBeInTheDocument();
expect(screen.getByText("Plugins")).toBeInTheDocument();
expect(screen.getByText(/Control the desktop.*screen-recording, accessibility/)).toBeInTheDocument();
expect(screen.getByText(/Control the desktop/)).toBeInTheDocument();
expect(screen.getByText("screen-recording, accessibility")).toBeInTheDocument();
fireEvent.click(screen.getByRole("button", { name: "Enable" }));
await waitFor(() => expect(requestMutationMock).toHaveBeenCalledWith(
@@ -46,7 +46,7 @@ describe("ThinkingReasoningShell", () => {
</ThinkingReasoningShell>
);
const view = render(shell(true));
const button = screen.getByRole("button", { name: "Working · Collapse activity details" });
const button = screen.getByRole("button", { name: "Working, Collapse activity details" });
const content = screen.getByTestId("agent-activity-content");
const headerClass = button.className;
const contentClass = content.className;
@@ -55,7 +55,7 @@ describe("ThinkingReasoningShell", () => {
view.rerender(shell(false));
expect(screen.getByRole("button", { name: "Worked · Collapse activity details" })).toBe(button);
expect(screen.getByRole("button", { name: "Worked, Collapse activity details" })).toBe(button);
expect(button.className).toBe(headerClass);
expect(screen.getByTestId("agent-activity-content")).toBe(content);
expect(content.className).toBe(contentClass);
+1 -1
View File
@@ -1102,7 +1102,7 @@ describe("ThreadMessages", () => {
const answer = screen.getByText("automated answer").closest<HTMLElement>("[data-thread-display-unit]")!;
const { menu } = openMessageBlockMenu(answer);
const metadata = menu.querySelector<HTMLElement>("[data-message-block-metadata]")!;
expect(metadata).toHaveTextContent("Triggered automatically · Review schedule");
expect(metadata).toHaveTextContent("Triggered automatically Review schedule");
expect(metadata.querySelector("time[datetime]")).toBeInTheDocument();
expect(metadata.querySelector("button, svg, [tabindex]")).toBeNull();
expect(metadata).toBe(menu.querySelector("[data-message-block-menu-actions]")?.lastElementChild);
+8 -8
View File
@@ -1172,7 +1172,7 @@ describe("ThreadShell", () => {
);
fireEvent.focus(await screen.findByLabelText("fast"));
expect(await screen.findByRole("tooltip")).toHaveTextContent("fast · gpt-5.5 · OpenAI Codex");
expect(await screen.findByRole("tooltip")).toHaveTextContent("fast gpt-5.5 OpenAI Codex");
fireEvent.blur(screen.getByLabelText("fast"));
expect(screen.queryByLabelText("Default")).not.toBeInTheDocument();
});
@@ -1199,7 +1199,7 @@ describe("ThreadShell", () => {
);
fireEvent.focus(await screen.findByLabelText("fast"));
expect(await screen.findByRole("tooltip")).toHaveTextContent("fast · gpt-5.5 · OpenAI Codex");
expect(await screen.findByRole("tooltip")).toHaveTextContent("fast gpt-5.5 OpenAI Codex");
fireEvent.blur(screen.getByLabelText("fast"));
expect(screen.queryByRole("button", { name: "Choose your AI" })).not.toBeInTheDocument();
});
@@ -1237,7 +1237,7 @@ describe("ThreadShell", () => {
"preset-order",
"/model fast",
);
expect(await screen.findByText("fast")).toBeInTheDocument();
expect(await screen.findByLabelText("fast", { selector: "button" })).toBeInTheDocument();
fireEvent.click(screen.getByRole("button", { name: "fast" }));
fireEvent.click(await screen.findByRole("option", { name: /^extra\b/i }));
expect(client.sendSystemCommand).toHaveBeenLastCalledWith(
@@ -1247,7 +1247,7 @@ describe("ThreadShell", () => {
expect(await screen.findByText("extra")).toBeInTheDocument();
rerender(view("fast"));
expect(await screen.findByText("fast")).toBeInTheDocument();
expect(await screen.findByLabelText("fast", { selector: "button" })).toBeInTheDocument();
});
it("uses the backend-resolved provider for an auto session preset", async () => {
@@ -1283,7 +1283,7 @@ describe("ThreadShell", () => {
);
fireEvent.focus(await screen.findByLabelText("fast"));
expect(await screen.findByRole("tooltip")).toHaveTextContent("fast · gpt-4 · Company Proxy");
expect(await screen.findByRole("tooltip")).toHaveTextContent("fast gpt-4 Company Proxy");
fireEvent.blur(screen.getByLabelText("fast"));
expect(screen.queryByRole("button", { name: "Choose your AI" })).not.toBeInTheDocument();
});
@@ -1335,7 +1335,7 @@ describe("ThreadShell", () => {
expect(configuredBadge).not.toHaveAttribute("data-fallback");
fireEvent.focus(screen.getByLabelText("Default"));
expect(await screen.findByRole("tooltip")).toHaveTextContent(
"Default · gpt-5.5 · OpenAI Codex",
"Default gpt-5.5 OpenAI Codex",
);
fireEvent.blur(screen.getByLabelText("Default"));
@@ -1832,7 +1832,7 @@ describe("ThreadShell", () => {
fireEvent.click(await screen.findByRole("button", { name: "Default" }));
fireEvent.click(await screen.findByRole("option", { name: /^fast\b/i }));
expect(await screen.findByText("fast")).toBeInTheDocument();
expect(await within(screen.getByTestId("thread-welcome-layout")).findByText("fast")).toBeInTheDocument();
expect(client.sendSystemCommand).not.toHaveBeenCalled();
fireEvent.change(screen.getByLabelText("Message input"), {
@@ -1850,7 +1850,7 @@ describe("ThreadShell", () => {
rerender(view(session("chat-new", "fast")));
});
fireEvent.focus(await screen.findByLabelText("fast"));
expect(await screen.findByRole("tooltip")).toHaveTextContent("fast · gpt-5.5 · OpenAI Codex");
expect(await screen.findByRole("tooltip")).toHaveTextContent("fast gpt-5.5 OpenAI Codex");
fireEvent.blur(screen.getByLabelText("fast"));
expect(screen.queryByText("Default")).not.toBeInTheDocument();
expect(client.sendMessage).not.toHaveBeenCalled();
+1 -1
View File
@@ -109,7 +109,7 @@ describe("Token usage card", () => {
expect(column).toHaveAccessibleName(/2026-09-09: 2,200 tokens/);
expect(column).toHaveAccessibleName(/model-5: 600/);
expect(column).toHaveAccessibleName(/Other \/ unattributed: 200/);
const legend = screen.getByLabelText("model-5: Total tokens: 600 · 27.3%, Cache hit rate: 80%");
const legend = screen.getByLabelText("model-5: Total tokens: 600 (27.3%), Cache hit rate: 80%");
expect(legend).toHaveAttribute("tabindex", "0");
});
});
+19 -10
View File
@@ -14,7 +14,7 @@ describe("trace activity semantics", () => {
});
it.each([
['web_search({"query":"nanobot latest release"})', "done", "Searched nanobot latest release", ""],
['web_search({"query":"nanobot latest release"})', "done", "Searched the web", "nanobot latest release"],
['web_fetch({"url":"https://example.com/docs?token=private"})', "done", "Read", "example.com/docs"],
['read_file({"path":"/Users/alice/project/README.md"})', "done", "Read", "~/project/README.md"],
['exec({"command":"date +%Y-%m-%d"})', "done", "Checked current time", ""],
@@ -30,19 +30,27 @@ describe("trace activity semantics", () => {
});
it.each([
["running", "Searching status test"],
["done", "Searched status test"],
["error", "Could not search status test"],
["running", "Searching the web"],
["done", "Searched the web"],
["error", "Could not search the web"],
] as const)("uses status-aware search copy for %s", (status, label) => {
expect(describeTrace('web_search({"query":"status test"})', status).label).toBe(label);
expect(describeTrace('web_search({"query":"status test"})', status)).toMatchObject({ label, detail: "status test" });
});
it.each([
["running", "Searching X · status test"],
["done", "Searched X · status test"],
["error", "Could not search X · status test"],
["running", "Searching X"],
["done", "Searched X"],
["error", "Could not search X"],
] as const)("identifies hosted X search activity for %s", (status, label) => {
expect(describeTrace('x_search({"query":"status test"})', status).label).toBe(label);
expect(describeTrace('x_search({"query":"status test"})', status)).toMatchObject({ label, detail: "status test" });
});
it("preserves query lines when extracting a search scope", () => {
const query = "site:linkedin.com/company Evomap startup\nsite:linkedin.com/company Evomap funding";
expect(describeTrace(`web_search(${JSON.stringify({ query })})`)).toMatchObject({
label: "Searched LinkedIn",
detail: "Evomap startup\nEvomap funding",
});
});
it("never exposes URL credentials, query secrets, or private-network links", () => {
@@ -63,7 +71,8 @@ describe("trace activity semantics", () => {
);
expect(result).toMatchObject({
label: "Ran command",
detail: "npm test · script, 3 lines",
detail: "npm test",
aside: "script, 3 lines",
});
expect(result.detail).not.toContain("second-secret-line");
});