logs/traces: `--since 5` (missing unit) silently searches from 2001
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 88/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- bun, node.js, typescript
- Domain
- cli, observability
Research direction
Start with parseTimeString in src/handlers/observability/time.ts and check how bare numeric strings are handled before they reach Date.parse. Add rejection with the expected invalid-time guidance for unsupported bare numbers, then run the relevant logs and traces tests. Done means values such as 5, 60, and 45 produce the invalid-time error while supported formats still work.
Written by the indexing model from the issue text.
Description
Description
--since / --until on the logs and traces commands accept 5m, 1h, ISO 8601, epoch ms or
now. A bare number shorter than 13 digits is not rejected: parseTimeString
(src/handlers/observability/time.ts) passes it to Date.parse, which reads it leniently as a
calendar date. So a forgotten unit turns into a window decades long, or a confusing error.
Steps to Reproduce
agentcore runtime logs --id <runtime-id> --since 5(meant5m).agentcore runtime logs --id <runtime-id> --since 60.agentcore runtime logs --id <runtime-id> --since 45.
Expected Behavior
Invalid time string: "5". Use relative durations (5m, 1h, 2d), ISO 8601, epoch ms, or "now".
Actual Behavior
- Searches from 2001-05-01 (
Date.parse("5")). - Searches from 1960-01-01.
- Fails with
--since must resolve to a time before --until("45"is 2045-01-01).
("30" happens to be rejected, because V8 cannot parse it.)
CLI Version
1.2.0 (current v1.x, a6452a4)
Operating System
Linux
Additional Context
Same under Node 22 and Bun 1.4 (the npm bundle and the compiled binaries).
- Dominant language
- TypeScript
- Stars
- 339
- Forks
- 129
- Avg merge
- 19h 21m
- Merged PRs (30d)
- 125
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aws/agentcore-cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
aws/agentcore-cli#2939 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
aws/agentcore-cli#2938 ·
Maintainers usually reply within 1 day
-
invoke: CUSTOM_JWT runtime errors discard the response body and error type (e.g. "Token has expired")Possibly taken @n1dhruv claimed this 6 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
aws/agentcore-cli#2875 · 1 comment ·
Maintainers usually reply within 1 day
-
--debug has no effect; service error name, HTTP status and request ID never reach the terminalPossibly taken @abhiramshaji-cyber claimed this 3 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
aws/agentcore-cli#2874 ·
Maintainers usually reply within 1 day
-
`agentcore dev` container fails with LoginTokenLoadError when using `aws login` credentialsPossibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
aws/agentcore-cli#2606 · 4 comments ·
Maintainers usually reply within 1 day
All issues in aws/agentcore-cli
Similar issues
-
bot:ai-assisted component:faucet status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
midnightntwrk/midnight-faucet-api#222 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bluesky-social/social-app#12545 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
knaw-huc/textannoviz#742 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
cloudflare/realtimekit-ui#219 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
cdklabs/cdk-nextjs#365 ·
Maintainers usually reply within 1 day