Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

@ammar-agent ammar-agent commented Oct 12, 2025

Adds human-readable relative time to idle workspace tooltips, making it easier to identify workspace recency at a glance.

Changes:

  • Idle workspaces now show Idle β€’ Last used 5 minutes ago in tooltip
  • Never-used workspaces show just Idle
  • New formatRelativeTime() utility handles relative time formatting
  • Comprehensive test coverage for all time ranges

Examples:

  • "just now" (< 1 minute)
  • "5 minutes ago"
  • "3 hours ago"
  • "2 days ago"
  • "3 weeks ago"
  • "6 months ago"
  • "2 years ago"

Uses existing lastUserMessageAt from WorkspaceState (tracks most recent user message timestamp).

Generated with cmux

@ammar-agent ammar-agent force-pushed the workspace-idle-tooltip branch 2 times, most recently from 1076cfa to 42dddd2 Compare October 13, 2025 20:03
@ammario ammario added this pull request to the merge queue Oct 13, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 13, 2025
- Add formatRelativeTime() utility for human-readable time deltas
- Idle workspaces now show "Idle β€’ Last used 5 minutes ago" in tooltip
- Never-used workspaces show "Idle β€’ Never used"
- Uses existing lastUserMessageAt from WorkspaceState

Examples: "2 minutes ago", "3 hours ago", "5 days ago", "2 weeks ago"

Generated with `cmux`
Adapt to property rename from lastUserMessageAt to recencyTimestamp
in WorkspaceState (from PR #229).

_Generated with `cmux`_
@ammar-agent ammar-agent force-pushed the workspace-idle-tooltip branch from 42dddd2 to 1ccbb1d Compare October 13, 2025 21:05
@ammario ammario enabled auto-merge October 13, 2025 21:05
@ammario ammario added this pull request to the merge queue Oct 13, 2025
Merged via the queue into main with commit 5e4a025 Oct 13, 2025
7 checks passed
@ammario ammario deleted the workspace-idle-tooltip branch October 13, 2025 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants