• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dcdpr / jp / 25678215829
65%

Build:
DEFAULT BRANCH: main
Ran 11 May 2026 03:03PM UTC
Jobs 1
Files 301
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 May 2026 03:01PM UTC coverage: 66.371% (+0.1%) from 66.256%
25678215829

push

github

web-flow
fix(workspace, cli): Bump `last_activated_at` on conversation use (#628)

`activate_session_conversation` previously only wrote the session
mapping; it never updated the conversation's `last_activated_at`
metadata. This meant that `jp c use` and `jp query` did not actually
refresh the "last worked on" timestamp that drives list sorting, archive
cutoffs, and `--id=last`.

The fix splits the old method into two:

- `activate_session_conversation(&ConversationLock, ...)` — requires the
caller to already hold the conversation lock. It bumps
`last_activated_at` on the metadata and writes the session mapping.
Requiring a `&ConversationLock` makes it a type-level invariant that the
metadata write is safe.

- `record_session_activation(session, id, now)` — the old behaviour:
writes only the session mapping, leaving conversation metadata
untouched. Used in the lock-contention fallback and in tests that
exercise session-mapping logic in isolation.

In `jp c use`, a non-blocking lock attempt is now made before
activating. If the lock is acquired, the full
`activate_session_conversation` path runs. If another process holds the
lock (e.g. a streaming query is in progress),
`record_session_activation` is used as a fallback so the session mapping
is still captured immediately, while `last_activated_at` is left at the
lock holder's recent value — close enough for sorting and archive
purposes in the common case.

---------

Signed-off-by: Jean Mertz <git@jeanmertz.com>

21 of 26 new or added lines in 4 files covered. (80.77%)

25819 of 38901 relevant lines covered (66.37%)

255.79 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
81.13
0.0% crates/jp_cli/src/cmd/conversation/fork.rs
2
54.22
54.22% crates/jp_cli/src/cmd/conversation/use_.rs
1
52.34
0.0% crates/jp_cli/src/cmd/query.rs
Jobs
ID Job ID Ran Files Coverage
1 25678215829.1 11 May 2026 03:03PM UTC 301
66.37
GitHub Action Run
Source Files on build 25678215829
  • Tree
  • List 301
  • Changed 4
  • Source Changed 4
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25678215829
  • b717ad1e on github
  • Prev Build on main (#25676535827)
  • Next Build on main (#25732515227)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc