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:
1 parent
d6ddceed99
commit
7cb396788c
82 files changed
+433
-462
No files matched your search
@@ -17,7 +17,7 @@ export function connectionStatusText(
|
||||
? "Still getting ready…"
|
||||
: "Nanobot is taking longer to respond…"
|
||||
}
|
||||
if (status === "error") return "Nanobot unavailable · restart nanobot"
|
||||
if (status === "error") return "Nanobot unavailable. Restart nanobot."
|
||||
return "Session ended"
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ export interface RenderedRetryStatus extends RetryStatus {
|
||||
|
||||
export function retryStatusLine(status: RenderedRetryStatus, nowMs = Date.now()): string {
|
||||
const label = retryFailureLabel(status.error_kind)
|
||||
if (status.state === "exhausted") return `${label} · ending turn`
|
||||
if (status.state === "exhausted") return `${label}. Ending turn.`
|
||||
if (status.state === "recovered") return "Connection restored"
|
||||
if (status.state === "cleared") return "Retry status cleared"
|
||||
const remaining = Math.max(
|
||||
@@ -57,7 +57,7 @@ export function retryStatusLine(status: RenderedRetryStatus, nowMs = Date.now())
|
||||
const attempt = status.max_attempts
|
||||
? `${status.attempt}/${status.max_attempts}`
|
||||
: String(status.attempt)
|
||||
return `${label} · retrying in ${remaining}s · attempt ${attempt}`
|
||||
return `${label}. Retrying in ${remaining}s (attempt ${attempt}).`
|
||||
}
|
||||
|
||||
export function sessionExitMessage(chatId: string): string {
|
||||
|
||||
Reference in new issue
Block a user