Skip to content

docs(cli): distinguish /clear from /new in CLI reference#1335

Open
factory-arman wants to merge 1 commit into
mainfrom
docs/clear-preserves-model
Open

docs(cli): distinguish /clear from /new in CLI reference#1335
factory-arman wants to merge 1 commit into
mainfrom
docs/clear-preserves-model

Conversation

@factory-arman

Copy link
Copy Markdown
Contributor

Description

What

The CLI reference still described /clear as "Start a new session (alias for /new)". The two commands are no longer aliases.

Why

/clear now preserves the session's current model and autonomy while wiping conversation context, and /new is the command that resets model and autonomy to defaults. Readers of the reference would pick the wrong command for a mid-task context reset.

How

This PR updates the /clear and /new rows in the slash-command tables in both locales, using the exact descriptions the CLI shows in its slash menu so the docs and the TUI agree.

Command Before After
/clear Start a new session (alias for /new) Clear conversation context, keep current model & autonomy
/new Start a new session Start a fresh session, reset model & autonomy to defaults

Reviewer Guide

Diff shape: 100% documentation; four table rows across two localized files. No prose or structural changes.
Review depth: Skim — verify the two descriptions match the CLI slash menu in each locale.
Read order:

  1. docs/reference/cli-reference.mdx — English slash-command table.
  2. docs/jp/reference/cli-reference.mdx — Japanese equivalents.

Out of Scope

  • docs/changelog/release-notes.mdx already carries the fix under July 14 / v0.172.0 ("/clear preserves model"), so no changelog entry is added.
  • docs/reference/hooks-reference.mdx stays accurate: both commands still create a new session under the hood, so the SessionStart clear matcher and the SessionEnd clear reason are unaffected.

Risk & Impact

Low risk. Documentation-only; no CLI behavior, configuration, or generated artifacts change.

Verification

Behavior verified. Re-grepped /clear across docs/ and confirmed no remaining "alias for /new" claims in either locale.
Formatting. Checked table column alignment: English rows stay at 98 characters, Japanese rows at 109 east-asian display width, matching the surrounding rows.
Standard validators. No formatter, linter, typecheck, or test configuration exists in this docs-only repository; git diff --check passes.

/clear no longer resets the session: it preserves the current model and
autonomy while wiping context, and /new is the command that resets to
defaults. Update the EN and JP slash-command tables, which still called
/clear an alias for /new, using the strings the CLI shows in its slash
menu.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@factory-droid

factory-droid Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Droid finished @factory-arman's task —— View job


Security Review

Phase 2 Validation

Status: approved

LGTM, this docs-only update correctly distinguishes /clear from /new and keeps the English and Japanese tables consistent.

@mintlify

mintlify Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
factory 🟢 Ready View Preview Jul 27, 2026, 4:29 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@mintlify

mintlify Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
factory 🟡 Building Jul 27, 2026, 4:28 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

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.

1 participant