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