query(cache=False) omits bypass and uses the server cache
Maintainers usually reply within 10 days
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- python
- Domain
- backend-api-design, testing
Research direction
Start at ActivityWatchClient.query and inspect the captured _post arguments described in the issue; the payload does not name a file or test. Reproduce the cache=False request and add a regression for its wire encoding, then check Python and Rust server compatibility. Done means default and explicit cache=False bypass caching while named cache=True keeps working; pull request #154 is already open.
Written by the indexing model from the issue text.
Description
On current master c88cf12c6fb122447157c183322eb2b5c12e6266, ActivityWatchClient.query(..., cache=False) sends neither a cache query parameter nor a body cache value. The Python server defaults omission to enabled caching, so the client's default false is ignored.\n\nReproduced by capturing the actual query method's _post arguments: params={} and body contains only query/timeperiods. An offline Flask/MemoryStorage replay with synthetic RETURN = 17; requests records one cache miss then one hit for two cache=False calls; explicit body false leaves counters unchanged. This is ignored bypass, not a claim of stale/corrupt data.\n\nExpected: default and explicit cache=False bypass caching. Named cache=True retains caching; unnamed cache=True and naive datetime validation remain unchanged. Fix scope is client wire encoding plus regressions, with Python/Rust server compatibility checked.
- Dominant language
- Python
- Stars
- 73
- Forks
- 76
- Avg merge
- 8d 13h
- Merged PRs (30d)
- 17
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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 ActivityWatch/aw-client
-
Bucket IDs containing URL-reserved characters are not addressed literallyPossibly taken @TimeToBuildBob claimed this 26 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 62/100
ActivityWatch/aw-client#155 ·
Maintainers usually reply within 10 days
-
Many heartbeats and a unavailable server might lead to queue cloggingPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 20/100
Maintainers usually reply within 10 days
All issues in ActivityWatch/aw-client
Similar issues
-
bug docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
ActivityWatch/docs#223 ·
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capturePossibly taken @jianyx1 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
volcengine/OpenViking#8354 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ARTPARK-SAHAI-ORG/calibrate-frontend#842 ·
Maintainers usually reply within 1 day
-
comp/tools P2 tool/skills type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NousResearch/hermes-agent#159541 ·
Maintainers usually reply within 1 day