Skip to content

feat: add --last-accessed flag to expose tab.lastAccessed timestamp#140

Open
kevintraver wants to merge 1 commit intobalta2ar:masterfrom
kevintraver:feature/last-accessed
Open

feat: add --last-accessed flag to expose tab.lastAccessed timestamp#140
kevintraver wants to merge 1 commit intobalta2ar:masterfrom
kevintraver:feature/last-accessed

Conversation

@kevintraver
Copy link

Summary

  • Add opt-in --last-accessed / -L flag to bt list and bt query commands
  • Exposes Firefox's tab.lastAccessed timestamp (milliseconds since epoch)

Changes

  • Extension: Always includes lastAccessed as 4th field in tab output
  • Python CLI: Strips 4th field by default for backward compatibility
  • Tab class: Parses lastAccessed when present, defaults to 0

Usage

# Default (3 fields, unchanged):
bt list
# a.1.123	Page Title	https://example.com

# With --last-accessed flag (4 fields):
bt list --last-accessed
# a.1.123	Page Title	https://example.com	1768780769297

Test plan

  • bt list returns 3 columns (backward compatible)
  • bt list --last-accessed returns 4 columns with timestamp
  • bt query returns 3 columns (backward compatible)
  • bt query --last-accessed returns 4 columns with timestamp
  • All existing tests pass

🤖 Generated with Claude Code

Extension always includes lastAccessed (4th field), but Python CLI
strips it by default for backward compatibility. Pass --last-accessed
or -L to bt list/query to include the timestamp in output.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

1 participant