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

dcdpr / jp / 20782833006
58%

Build:
DEFAULT BRANCH: main
Ran 07 Jan 2026 01:22PM UTC
Jobs 1
Files 173
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

07 Jan 2026 01:19PM UTC coverage: 51.126% (+1.5%) from 49.595%
20782833006

push

github

web-flow
feat(cli, conversation): add `conversation fork` command (#374)

Introduce the `jp conversation fork` command, allowing users to create a
new conversation based on the contents of an existing one. This is
useful for exploring different paths or isolating specific parts of a
discussion.

The command supports time-based filtering of events using the `--from`
and `--until` flags, which accept both relative (e.g., "5mins") and
absolute timestamps. Users can also immediately switch to the new fork
using the `--activate` flag.

```shell
# Fork the active conversation
jp conversation fork --activate

# Fork a specific conversation with events from 10 minutes ago
jp conversation fork <id> --from 10mins
```

Internally, changes are made to make it easier to test code that relies
on the current timestamp, such as
`Workspace::set_active_conversation_id`, and
`Workspace::create_conversation`. Additionally, the persistence logic
was moved from `Ctx` to `Workspace` to ensure state is saved even when
the workspace is dropped outside of the CLI context.

---------

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

322 of 351 new or added lines in 9 files covered. (91.74%)

8 existing lines in 3 files now uncovered.

9578 of 18734 relevant lines covered (51.13%)

124.44 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% crates/jp_cli/src/cmd/conversation.rs
1
46.79
2.57% crates/jp_conversation/src/stream.rs
2
0.0
0.0% crates/jp_cli/src/cmd/conversation/rm.rs
2
62.31
18.95% crates/jp_workspace/src/lib.rs
4
0.0
0.0% crates/jp_cli/src/cmd/conversation/use_.rs
5
26.8
-0.06% crates/jp_cli/src/cmd/query.rs
14
95.17
crates/jp_cli/src/cmd/conversation/fork.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% crates/jp_cli/src/cmd/conversation/rm.rs
2
26.8
-0.06% crates/jp_cli/src/cmd/query.rs
5
20.0
-33.33% crates/jp_workspace/src/error.rs
Jobs
ID Job ID Ran Files Coverage
1 20782833006.1 07 Jan 2026 01:22PM UTC 173
51.13
GitHub Action Run
Source Files on build 20782833006
  • Tree
  • List 173
  • Changed 13
  • Source Changed 9
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20782833006
  • 3b14ab2e on github
  • Prev Build on main (#20765305388)
  • Next Build on main (#20810240902)
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