Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ own front-end settings are separate; see [Configuration](#configuration).
`/stats` adds the `max_cost_usd` cap when set; hidden entirely otherwise.
- **Live server snapshot** — a 20s heartbeat measures WebSocket round-trip
latency and refreshes server uptime, connection count, and streaming state
(the badge beside the model); `/server` opens the full cockpit card.
(the » badge beside the model); `/server` opens the full cockpit card.
odek ≥ v2.1.0 also pushes `keepalive` so a thinking turn silent for
minutes does not lose the socket to an idle proxy.

Expand Down
2 changes: 1 addition & 1 deletion internal/tui/cockpit.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (m *Model) cockpitServerSection() string {
// — rendering it here too duplicated it inside the same cockpit.
rows := [][2]string{
{"model", orDash(m.model)},
{"stream", boolDash(m.serverStream, " live deltas", "buffered")},
{"stream", boolDash(m.serverStream, "» live deltas", "buffered")},
{"sandbox", boolDash(m.sandbox, "isolated", "host access")},
}
if m.srvUptime > 0 {
Expand Down
2 changes: 1 addition & 1 deletion internal/tui/cockpit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func TestCockpitPopover(t *testing.T) {
}
out := plain(m.View())
for _, want := range []string{"cockpit", "server", "1.24.0", "glm-5.3",
" live deltas", "1m30s", "2", "34ms", "cost cap", "session"} {
"» live deltas", "1m30s", "2", "34ms", "cost cap", "session"} {
if !strings.Contains(out, want) {
t.Errorf("cockpit missing %q:\n%s", want, out)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/tui/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ func (m *Model) statsBody() string {
link += th.statsDim.Render(fmt.Sprintf(" · %d ws", m.srvConns))
}
if m.serverStream {
link += th.statsDim.Render(" · stream")
link += th.statsDim.Render(" · » stream")
}
rows = append(rows, row{"⇄", th.statsLabel, "link", link})
}
Expand Down
4 changes: 2 additions & 2 deletions internal/tui/spec_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ func TestServerInfoAndPong(t *testing.T) {
if !m.pingSentAt.IsZero() {
t.Error("ping clock not reset")
}
// The badge marks a streaming server in the header.
if !strings.Contains(plain(m.header()), "") {
// The » badge marks a streaming server in the header.
if !strings.Contains(plain(m.header()), "»") {
t.Error("header missing stream badge")
}
}
Expand Down
9 changes: 6 additions & 3 deletions internal/tui/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,13 @@ func (m *Model) header() string {
if modelName == "" {
modelName = "default"
}
// The ⚡ badge marks a server streaming token/thinking deltas live (the
// same marker the WebUI's top bar carries).
// The » badge marks a server streaming token/thinking deltas live (the
// same marker the WebUI's top bar carries). "»" replaces the earlier ⚡
// (U+26A1): that glyph is East-Asian-ambiguous and emoji-presentation-
// capable, so several terminals mis-width or mis-paint it inside styled
// runs — plain "»" is single-cell everywhere.
if m.serverStream {
modelName = " " + modelName
modelName = "» " + modelName
}

// The left cluster, split around the model name: its truncation budget is
Expand Down