GeezerVison is showing github.com — feat(app): show dates for older sessions in the command palette by usrnk1 · Pull Request #62314 · anomalyco/opencode
Conversation
usrnk1
commented
Nov 6, 2026
•
edited by opencodejr
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sessions in the command palette show "Xd ago" forever (153d ago), which makes older sessions with similar titles hard to tell apart. From 7 days on, the palette now shows a short date (Oct 23, or Jun 4, 2025 for an earlier year), matching the TUI's 7-day cutoff. Hovering the time shows the full date and time in a v2 tooltip, and the time column uses tabular digits so same-shape values line up.
getRelativeTime (shell/time.ts) takes the app locale and switches to Intl.DateTimeFormat after 6 days. Settings → Workspaces uses the same helper, so its "last active" times change the same way.
- Busy sessions still show only the activity ring.
- No new copy: the date and tooltip come from
Intl in the app's language.
Related #62048 (this covers the search palette; the home session list still shows no time).
Before / after
Same live server, same rep search, light theme.
Before: 
After: 
Tooltip: 
Checks
bun test src/shell/time.test.ts (packages/app): 6 pass, also under TZ=Pacific/Kiritimati, Pacific/Auckland, America/Los_Angeles
bun typecheck (packages/app): pass
bun run lint:changed origin/dev: 0 problems
Visual
<svg xmlns="http://www.w3.org/2000/svg" width="240" height="72" viewBox="0 0 240 72" fill="none">
<style>
.a{animation:a 4s ease-in-out infinite}
.b{opacity:0;animation:b 4s ease-in-out infinite}
@keyframes a{0%,40%{opacity:1}50%,90%{opacity:0}100%{opacity:1}}
@keyframes b{0%,40%{opacity:0}50%,90%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.a{animation:none;opacity:0}.b{animation:none;opacity:1}}
</style>
<rect x="8" y="10" width="224" height="52" rx="8" stroke="currentColor" stroke-opacity=".25"/>
<rect x="18" y="20" width="10" height="10" rx="2" fill="currentColor" fill-opacity=".6"/>
<rect x="34" y="22" width="96" height="6" rx="3" fill="currentColor" fill-opacity=".7"/>
<rect x="18" y="42" width="10" height="10" rx="2" fill="currentColor" fill-opacity=".6"/>
<rect x="34" y="44" width="80" height="6" rx="3" fill="currentColor" fill-opacity=".7"/>
<g font-family="sans-serif" font-size="10" fill="currentColor" fill-opacity=".6" text-anchor="end">
<text x="222" y="29">6d ago</text>
<text class="a" x="222" y="51">153d ago</text>
<text class="b" x="222" y="51">Jun 5</text>
</g>
</svg>
Added by the opencode bot (AI-generated).
Related: #62048
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks sound. I ran the new time.test.ts (6 pass, also under three other time zones) and the app type check (tsc -b, passes). I didn't render the palette myself because it's a web app view; your screenshots cover that.
Public API unchanged: getRelativeTime is internal to packages/app, and its two callers are both updated.
No blocking concerns.
Related: #62048
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new push only merges dev; this pull request's own changes are the same as before. time.test.ts (6 pass) and the app type check (tsc -b) still pass. The public API is unchanged, and there are no new concerns.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 7, 2026
Reviewers
Hona
Awaiting requested review from Hona
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|