Skip to content

docs(readme,cli): document /new & zero upgrade, add Discord link, and sync help text#489

Open
PierrunoYT wants to merge 10 commits into
Gitlawb:mainfrom
PierrunoYT:docs/readme-updates
Open

docs(readme,cli): document /new & zero upgrade, add Discord link, and sync help text#489
PierrunoYT wants to merge 10 commits into
Gitlawb:mainfrom
PierrunoYT:docs/readme-updates

Conversation

@PierrunoYT

@PierrunoYT PierrunoYT commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add the /new slash command to the README's slash-command table (added in polish: cut per-turn overhead, stabilize cache, add /new #478, not previously documented).
  • Add zero upgrade to the README's Common Commands list (added in feat(update): add zero upgrade command to apply self-updates #461).
  • Expand docs/UPDATE.md to document the --apply / zero upgrade install flow (npm delegation, standalone binary replace, Windows rename-aside, --target restriction) — it previously only covered --check.
  • Add a Discord badge and Community section linking https://discord.gg/CaQDS6wdFn (a non-expiring invite; the original N9CrWCH7b in earlier commits expired 2026-08-02 and was swapped out per review) to README.md and README_ZH.md.
  • Include a small behavior-neutral CLI help text consistency update: add upgrade to root zero --help output and update the corresponding root-help test expectation.

Closes #488

Test plan

  • Verified docs updates against current CLI/TUI behavior before documenting (internal/cli/update.go, internal/tui/commands.go).
  • Verified root CLI help output includes upgrade and kept help expectations in sync (internal/cli/app.go, internal/cli/app_test.go).
  • Behavior-neutral change only (help text + test assertions); no runtime logic/path changes.

Summary by CodeRabbit

  • New Features

    • Added a new /new interactive command to start a fresh session while keeping previous sessions saved locally.
    • Introduced a new zero upgrade command for downloading, verifying, and installing the latest release.
    • Added a Discord community link in the app docs.
  • Documentation

    • Updated command references and update/upgrade instructions for clearer release-check and install workflows.

Add the /new slash command and zero upgrade command to the README's
command references, expand docs/UPDATE.md to cover the --apply install
flow, and link the project Discord server.
@coderabbitai

coderabbitai Bot commented Jul 4, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3d2bb1c9-51ca-4885-8fcc-fcab62e1ffc8

📥 Commits

Reviewing files that changed from the base of the PR and between da69e2a and 66ccae0.

📒 Files selected for processing (3)
  • README.md
  • README_ZH.md
  • internal/cli/app.go
✅ Files skipped from review due to trivial changes (3)
  • internal/cli/app.go
  • README.md
  • README_ZH.md

📝 Walkthrough

Walkthrough

Documentation updates add /new slash-command references, zero upgrade command references, and Discord community sections/badges to README.md and README_ZH.md. docs/UPDATE.md expands update-flow documentation for --check/--apply semantics. internal/cli/app.go and its test add an upgrade entry to the CLI help output.

Changes

Documentation and help surface updates

Layer / File(s) Summary
README command references
README.md, README_ZH.md
Adds Discord badges, Community/社区 sections, /new slash-command table entries, and replaces zero update with zero update --check plus new zero upgrade entries.
Update flow semantics
docs/UPDATE.md
Documents --check vs --apply mutual exclusivity, zero upgrade as implied --apply, install semantics (npm delegation, standalone download/verify/replace, Windows rename), restricts --target to --check, and updates installer reinstall guidance to use zero upgrade.
CLI help output
internal/cli/app.go, internal/cli/app_test.go
Updates writeHelp command list to describe update and add a new upgrade entry, and extends the help-output test assertion to require upgrade.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

  • Gitlawb/zero#71: Builds on the update command help output changes in the same CLI help codepaths.
  • Gitlawb/zero#461: Overlaps with the upgrade command addition and its help/test wiring.
  • Gitlawb/zero#63: Also modifies documented commands in internal/cli/app.go and corresponding test assertions.

Suggested reviewers: gnanam1990, kevincodex1, Vasanthdev2004

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main doc and CLI help updates, including /new, zero upgrade, Discord link, and help text sync.
Linked Issues check ✅ Passed The PR covers the requested /new, zero upgrade/--apply docs, expanded UPDATE guide, and Discord links in both READMEs.
Out of Scope Changes check ✅ Passed The changes stay within docs and help text updates tied to the linked issue.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/UPDATE.md`:
- Around line 46-49: The Markdown table entry for the `--endpoint` option is
being split into extra columns because the placeholder contains an unescaped
pipe. Update the `docs/UPDATE.md` options table entry for `--endpoint` so the
placeholder no longer uses a raw pipe character, or escape it consistently with
the other table content; keep the change localized to the `--endpoint` row so
the table renders correctly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 32621c51-ed9f-4af9-a670-98d9e442accf

📥 Commits

Reviewing files that changed from the base of the PR and between f401c66 and ae52238.

📒 Files selected for processing (3)
  • README.md
  • README_ZH.md
  • docs/UPDATE.md

Comment thread docs/UPDATE.md
CodeRabbit flagged the unescaped | in the --endpoint placeholder
breaking the Markdown table layout.

@Vasanthdev2004 Vasanthdev2004 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs check out — /new and zero upgrade/--apply all match what the code actually does, and UPDATE.md finally covering the apply flow is a real gap filled.

Two things before it goes in:

  • The Discord invite (N9CrWCH7b) expires 2026-08-02, about a month out — its metadata shows expires_at set. It does resolve to the "Gitlawb Community" guild so it's the right server, but a headline-README link that stops working in 30 days isn't great. Regenerate it as a never-expire invite and swap that in.
  • README_ZH only picked up the Discord link — it's still missing the /new and zero upgrade additions the English README got. Worth bringing it in line so the Chinese readme doesn't drift behind.

Rest is good.

README_ZH.md had picked up the Discord link but was still missing the
/new slash command and zero upgrade entries added to README.md,
letting the translation drift out of sync.

@jatmn jatmn left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found a couple of issues that need to be addressed before this is ready.

Findings

  • [P2] Replace the expiring Discord invite before publishing it in the READMEs
    README.md:11
    The new README and README_ZH links use https://discord.com/invite/N9CrWCH7b, but the current invite metadata reports expires_at: 2026-08-02T15:11:41+00:00. That means the headline badge/community link will stop working about a month after this lands. Please replace both README links with a never-expiring invite before merging the docs update.

  • [P2] Keep the root help in sync with the newly documented upgrade command
    internal/cli/app.go:1040
    The README now documents zero upgrade as a common command, and the CLI dispatch does handle upgrade, but zero --help still lists only update in the Commands section. That leaves the built-in command discovery out of sync with the README/docs update this PR is making. Please add upgrade to the root help output, and cover it in the existing root-help test so the documented command does not drift again.

Copilot AI review requested due to automatic review settings July 5, 2026 09:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Zero’s user-facing documentation to reflect recently added session/upgrade capabilities and adds a Discord community link, plus a small CLI help text update to surface the upgrade command.

Changes:

  • Document /new and zero upgrade in both READMEs, and add a Discord badge + Community section.
  • Expand docs/UPDATE.md to cover the --apply / zero upgrade flow (including npm vs standalone behavior and Windows handling).
  • Add upgrade to the top-level CLI help command list and adjust the help-output test expectations.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
README.md Adds Discord link, documents /new and zero upgrade, and adds a Community section.
README_ZH.md Mirrors README updates in Chinese (Discord link, /new, zero upgrade, Community section).
docs/UPDATE.md Expands update documentation to include --apply / zero upgrade behavior and constraints.
internal/cli/app.go Adds upgrade to the top-level zero help command list.
internal/cli/app_test.go Updates help-output assertions to include upgrade.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread internal/cli/app.go Outdated
Comment thread README.md Outdated
Comment on lines +285 to +286
zero update check for newer releases
zero upgrade download, verify, and install the latest release
Comment thread README_ZH.md Outdated
Comment on lines +249 to +250
zero update 检查更新版本
zero upgrade 下载、验证并安装最新版本
Comment thread internal/cli/app.go Outdated
auth Log in to model providers via OAuth
sandbox Inspect sandbox policy and persistent grants
update Check for Zero CLI updates
upgrade Apply available Zero CLI updates
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@PierrunoYT PierrunoYT requested a review from jatmn July 5, 2026 09:47
@PierrunoYT PierrunoYT changed the title docs(readme): document /new, zero upgrade, and add Discord link docs(readme,cli): document /new & zero upgrade, add Discord link, and sync help text Jul 5, 2026
@PierrunoYT PierrunoYT requested a review from Vasanthdev2004 July 5, 2026 14:29

@jatmn jatmn left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates. I rechecked the changed paths and found issues that still need to be addressed.

Findings

  • [P1] Get the linked issue approved before continuing this community PR
    CONTRIBUTING.md:19
    This PR is from a CONTRIBUTOR account and links #488, but the linked issue currently has no labels, so it does not have the issue-approved label required by the contribution policy. CONTRIBUTING says community PRs opened before the related issue has that label may be closed without review. Please get #488 reviewed and marked issue-approved (or have a maintainer explicitly record an exception) before continuing the implementation fixes below.

  • [P2] Replace or remove the expiring Discord invite before publishing it
    README.md:11
    The README and README_ZH links still use https://discord.com/invite/N9CrWCH7b, and the current invite metadata still reports expires_at: 2026-08-02T15:11:41+00:00. That means the headline badge and community links will stop working shortly after this lands. Please replace both README links with a never-expiring invite, or leave the community link out until a permanent invite is available.

  • [P2] Complete Copilot's request to make the README update command match the CLI
    README.md:285
    Copilot flagged this after the help-text update, and the current README tables still list bare zero update as "check for newer releases" / "检查更新版本". The actual command still errors unless the user passes --check or --apply, while zero upgrade is the apply shorthand. Please update both README.md and README_ZH.md so the common-commands examples use zero update --check or otherwise make the required flag explicit.

PierrunoYT and others added 2 commits July 5, 2026 16:55
zero update errors without --check or --apply, so the bare form in
the common-commands examples was misleading. Addresses the Copilot
finding from the PR Gitlawb#489 review.

@Vasanthdev2004 Vasanthdev2004 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. Everything jatmn and I flagged is handled.

The Discord invite was the only real blocker — the old N9CrWCH7b expired 2026-08-02, so the headline README link and badge would have died in about four weeks. I swapped it for a permanent one (CaQDS6wdFn) in both READMEs and pushed it here; I checked it against the Discord API first — expires_at is null and it still resolves to the Gitlawb Community guild.

The docs themselves were already accurate: /new in the slash table, zero upgrade in Common Commands, the --apply/upgrade install flow in UPDATE.md, and the help-text sync in app.go (update now reads "check for or apply," plus the new upgrade line) all match what the code does. UPDATE.md finally covering the apply flow filled a genuine gap.

Marked #488 issue-approved. Thanks @PierrunoYT — solid docs work, and the community link is durable now.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README_ZH.md Outdated
Comment thread README_ZH.md Outdated
Comment thread internal/cli/app.go Outdated
PierrunoYT and others added 2 commits July 6, 2026 14:15
Copilot flagged the root zero --help summary for upgrade as less
specific than the download/verify/install phrasing already used in
README.md and docs/UPDATE.md for the same command.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
discord.com/invite/<code> and discord.gg/<code> resolve to the same
invite; discord.gg is the canonical short form to publish.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

@Vasanthdev2004 Vasanthdev2004 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read the docs diff for issue #488. The new sections read cleanly and the examples match the current CLI flags. One thing I couldn't verify from here: the Discord invite link — please confirm the invite URL still resolves and isn't expired/404 before this lands, since a dead invite in the docs is worse than none.

Heads up: main has an unrelated test-build break right now (PR #589 is the one-line fix, queued for merge), so Smoke is red here too until that lands — not from this change. Approving pending the invite check.

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.

README/docs missing zero upgrade, /new, and community link

4 participants