Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ DesireCore uses a **single-window three-column layout**, where all functions are

## Layout Diagram

![DesireCore three-column layout](/img/user-guide/interface/three-column-layout-en.svg)

```
+--------------------------------------------------------------+
| +------+--------------+----------------------------------+ |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---
title: Feature Entry Points and Operation Paths
description: Get to know DesireCore’s three main areas (Conversation Interface, Resource Manager, and Applications and Services) and common operation paths.
keywords: [feature entry points, operation paths, conversation interface, resource manager, applications and services, getting started]
---

# Feature Entry Points and Operation Paths

First time using DesireCore? Not sure where to start?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,60 @@ DesireCore supports common LaTeX syntax:

Long formulas scroll inside the message bubble instead of breaking the layout.

## Rendering Examples

The following examples show common Markdown elements in Companion replies:

**Code blocks** (with syntax highlighting and one-click copying):

````markdown
```python
def hello():
print("Hello, DesireCore!")
```
````

**Tables** (automatically aligned, with horizontal scrolling on narrow screens):

```markdown
| Feature | Status |
|---------|--------|
| Rendering | ✅ |
| Copying | ✅ |
```

**Mermaid diagrams** (automatically rendered as visual diagrams):

````markdown
```mermaid
graph LR
A[User input] --> B[Companion processing]
B --> C[Return results]
```
````

**Math formulas** (typeset with KaTeX):

```markdown
Inline: $E = mc^2$
Block: $$\int_0^1 x^2 dx = \frac{1}{3}$$
```

## Troubleshooting Rendering

| Issue | What Happens | What to Do |
|-------|--------------|------------|
| Invalid Mermaid syntax | The original code block is kept instead of a diagram | Ask the Companion to correct the syntax and output it again |
| Invalid LaTeX formatting | The raw LaTeX source is displayed | Check that the `$` delimiters are paired |
| Inconsistent table column counts | Some columns may be misaligned | Make sure each row has the same number of `\|` characters |
| Unclosed code block | Subsequent content is treated as code | Make sure opening and closing triple backticks (`` ``` ``) are paired |

:::tip Practical Tips
- If a Companion's Mermaid diagram does not render, tell it: "The Mermaid syntax is invalid. Please fix it."
- To copy diagram source, use "Copy Markdown" instead of "Copy".
- Long formulas scroll horizontally inside the message bubble without breaking the layout.
:::

## Copying

| Action | Result |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,28 @@ Markdown is best when you want to keep editing. PDF is best for sharing with peo

Desktop PDF export uses the unified document rendering pipeline and preserves common Markdown structures such as headings, tables, code blocks, images, and formulas.

## Step-by-Step Instructions

### Export a Full Conversation

1. Open the target Companion's chat.
2. Click the "More" button (three dots) on the right side of the chat header.
3. Choose "Export Conversation" from the menu.
4. In the export settings panel, select the full-history scope, a format (Markdown / PDF), and content options.
5. Confirm the export. The file is saved to your system's Downloads folder or the location you specify.

### Export Selected Messages

1. Choose "Multi-select" from the chat header's "More" menu to enter multi-select mode.
2. Check the messages you want to export using the checkboxes on their left.
3. Click "Export" in the bottom action bar.
4. Choose a format and content options, then confirm.

:::tip Export Scope
Multi-select export groups selected messages by run (a complete request-response cycle) to preserve context. For example, selecting a Companion reply also includes its corresponding user question and tool calls in the export.
:::

## Next Steps

- Learn about searching and locating messages in [Chat History](./05-chat-history.md).
- Use [Context Control](./09-context-control.md) to manage long conversations.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ keywords: [context, compaction, /new, /compact, CompactSession, long conversatio

DesireCore keeps the visible conversation history, but each model call has a finite context window. Context control lets long conversations continue without deleting the visible history.

![Context lifecycle diagram](/img/user-guide/conversations/context-lifecycle-en.svg)

## `/new`

`/new` creates a new context boundary in the same conversation.
Expand All @@ -32,3 +34,23 @@ When a conversation approaches the model's context limit, DesireCore can compact

Some agents can call `CompactSession` themselves when they detect a long-running task. It keeps the UI history intact and only changes what future model calls read.

## Practical Recommendations

| Scenario | Recommended Action | Reason |
|----------|--------------------|--------|
| Switching topics, such as from coding to the weather | `/new` | Prevent old task context from interfering with the new topic |
| Working on a long task, such as writing a 20-page document | `/compact` | Free up context space while retaining a task summary |
| The conversation is long but still about the same task | Wait for automatic compaction | The system compacts context at an appropriate time |
| The agent went in the wrong direction and you want to try again | Rewind | Return to a checkpoint before the mistake |
| You no longer need the conversation at all | Clear chat history | Irreversible; use with care |

:::info Choosing Between `/new` and `/compact`
- **`/new`**: Breaks the context connection with earlier content. Use it when the next topic is unrelated to the previous discussion.
- **`/compact`**: Keeps a summary of earlier content. Use it when you are continuing the same task but the conversation has become too long.

If you are unsure, prefer `/compact`: it preserves the task context in a summary.
:::

:::tip Memory Is Unaffected by Compaction
A Companion's long-term memory (knowledge acquired through teaching or automatic learning) is stored in AgentFS and is unaffected by context compaction. Learned rules and preferences remain in effect after `/new` or `/compact`.
:::
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,25 @@ Before applying, DesireCore shows an impact preview. The old branch remains in h

Rewind restores DesireCore-managed local state. It usually cannot undo external side effects such as sent emails, pushed commits, external API calls, or third-party approvals.

## How Branching Works

Rewind creates a new execution branch from a checkpoint while preserving the existing history:

![Rewind branching diagram](/img/user-guide/conversations/rewind-branch-en.svg)

- **The old branch is preserved**: All messages and operation records from before the rewind remain in history.
- **A new branch is created**: After confirmation, the system starts a new execution path from the target checkpoint.
- **Repeated rewinds**: Each rewind creates another branch, forming a structure similar to Git branches.

```text
Timeline:
Message 1 → Message 2 → Message 3 → Message 4 (original path)
Message 3' → Message 4' (after the first rewind)
Message 3'' → ... (after the second rewind)
```

:::tip Safety Net
Preserving old branches makes it easier to try another path. If the new path is unsatisfactory, rewind again to an earlier checkpoint or refer to content in the old branch. The external side-effect limits described above still apply.
:::
52 changes: 52 additions & 0 deletions static/img/user-guide/conversations/context-lifecycle-en.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions static/img/user-guide/conversations/rewind-branch-en.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading