Skip to content

docs(agents): drop --cache from the canonical CLI example - #226

Merged
ErikBjare merged 1 commit into
ActivityWatch:masterfrom
TimeToBuildBob:bob/docs-canonical-cli-no-cache
Nov 24, 2026
Merged

ErikBjare merged 1 commit into
ActivityWatch:masterfrom
TimeToBuildBob:bob/docs-canonical-cli-no-cache

Conversation

@TimeToBuildBob

Copy link
Copy Markdown
Contributor

The "Get canonical activity" command in examples/agents-and-ai.rst fails when copy-pasted:

$ aw-client canonical myhost --start 2026-08-03T08:00:00 --stop 2026-08-03T12:00:00 --cache
Exception: You are not allowed to do caching without a query name

aw-client requires --name together with --cache (on master the CLI help says "required with --cache"). Without --cache the same command runs and prints the canonical table. I verified both with aw-client 0.5.15 from PyPI against aw-server-rust v0.14.3. This PR drops the flag; caching isn't needed for a first look at the data.

No overlap with #214: it appends a new section near line 191, and this changes line 41.

Found during a docs-vs-reality pass (with #224, #225).

aw-client refuses --cache without --name ("You are not allowed to do
caching without a query name"), so the copy-pasted command failed.
Verified with aw-client 0.5.15 against aw-server-rust v0.14.3.

Git-Session-Id: bed1476c-0b54-4dde-9c03-8080d9dde1e7
@TimeToBuildBob

Copy link
Copy Markdown
Contributor Author

Review guide (auto-posted)

Structured warm-up for reviewers — what changed, what to run, where to look.

Key files

  • src/examples/agents-and-ai.rst (+1/-1, Δ2)

Suggested verification

  • Run the repo's usual CI-equivalent checks locally

Known risks / watch points

  • No automatic high-risk tags; use file list + diff for judgment.

Suggested review focus

  • Confirm behavior matches the PR description acceptance criteria.
  • Skim the largest diffs first (listed above).
  • If CI is green, spot-check the highest-risk paths called out here.

Generated by scripts/github/pr-warmup-review-guide.py for #226.

@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] Safe to merge; the change fixes the copy-paste example without changing the query’s scope.

Summary

The canonical activity example drops --cache so readers can run it without supplying a query name. The host and time range stay the same.

  • The canonical activity example runs without a cache flag.

Reviews (1) · Last reviewed commit: "docs(agents): drop --cache from the cano..." · Reviewed by Greptile

@ErikBjare
ErikBjare merged commit 73135a1 into ActivityWatch:master Nov 24, 2026
2 checks passed
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