You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 42ce394
Browse filesBrowse the repository at this point in the historyBrowse files
feat(tui): add datetime_format and show each footer detail once
Times and dates were always written by toLocale*String with the runtime
locale, which Bun resolves to en-US whatever LANG and LC_TIME say, so
there was no way to get 24-hour or ISO dates. datetime_format in
tui.json takes a date and a time pattern in Day.js tokens (YYYY, MM,
DD; HH, mm, ss, A ...); entries from today still show only the time,
and an unset part keeps the locale output. Each part accepts only its
own tokens and other letters must be bracketed, so "HH:MM:SS" (month
in place of minute) is rejected instead of misprinted. It applies to
every caller of the Locale time helpers: footers, entry timestamps,
the compaction divider and the timeline, fork and stash dialogs.
With footer.message_id on both, a tool call repeated its assistant
message's ID right above the message footer. A tool call now shows the
ID only when the message's own footer does not
(toolFooterShowsMessageID): message_id "tool" without "assistant", or
"important" leaving a plain step's footer out.
A collapsed or expanded block tool drew its "Click to expand" hint and
its footer on two lines. BlockTool now takes the hint and joins the
footer to it with " · "; clicking the hint still toggles the block and
a msg_ ID on that line still copies.
AI-Tool: opencode 1.18.34-vt-163-907b3bc518
AI-Model: anthropic/claude-opus-5-5
AI-Variant: high
AI-Platform: linux
AI-Harness: Vibeterm fcbe738
AI-Session-ID: ses_ee68aab01ffei41gwUGJ5ESj6W
"Time from the prompt to the end of the turn. Applies to: assistant, and only on a turn's final message, so 'important' and 'assistant' select the same footers as 'all'. Default: all.",
215
215
),
216
216
message_id: footerElement(
217
-
"The message ID (msg_...), selectable for drag-to-copy, at the end of the footer. Applies to: user, assistant, tool (the message the call belongs to). Default: none.",
217
+
"The message ID (msg_...), selectable for drag-to-copy, at the end of the footer. Applies to: user, assistant, tool. A tool call shows the ID of the message it belongs to only when that message's own footer does not show it, so each ID appears once. Default: none.",
218
218
),
219
219
}).annotate({
220
220
description: [
@@ -256,6 +256,12 @@ export function footerShows(selection: FooterSelection, type: TimestampType, lan
256
256
returnselection.important&&landmark()
257
257
}
258
258
259
+
// A tool call belongs to its assistant message, so its footer repeats the message ID only when the
260
+
// message's own footer does not show it: each ID appears once.
"Date pattern, shown before the time on entries from another day: YYYY year, YY two-digit year, MM month (01-12), M month (1-12), DD day (01-31), D day (1-31); other letters must be in [brackets]. Example: 'YYYY-MM-DD'. Unset: the locale's date, e.g. 10/7/2026",
"Time pattern: HH hour 00-23, H 0-23, hh hour 01-12, h 1-12, mm minute (lowercase; MM is the month and is rejected here), m minute, ss second, s second, A AM/PM, a am/pm; other letters must be in [brackets]. Example: 'HH:mm:ss'. Unset: the locale's short time, e.g. 2:20 PM",
325
+
}),
326
+
}).annotate({
327
+
description:
328
+
"How times and dates are written in message footers, entry timestamps, the compaction divider and the timeline and stash dialogs. Entries from today show only the time",
@@ -370,6 +394,7 @@ export const Info = Schema.Struct({
370
394
"Legacy alias of footer.variant: true shows the variant a turn ran with, such as its reasoning effort ('high'), after the model in assistant message footers (default: false). footer.variant wins when set",
0 commit comments