mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 08:03:39 +00:00
docs(coding-agent): fix ctx.branch -> ctx.fork in extensions docs
This commit is contained in:
parent
4dbf094b65
commit
fc3ca545df
2 changed files with 5 additions and 5 deletions
|
|
@ -715,14 +715,14 @@ if (result.cancelled) {
|
|||
}
|
||||
```
|
||||
|
||||
### ctx.branch(entryId)
|
||||
### ctx.fork(entryId)
|
||||
|
||||
Branch from a specific entry:
|
||||
Fork from a specific entry, creating a new session file:
|
||||
|
||||
```typescript
|
||||
const result = await ctx.branch("entry-id-123");
|
||||
const result = await ctx.fork("entry-id-123");
|
||||
if (!result.cancelled) {
|
||||
// Now in the branched session
|
||||
// Now in the forked session
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue