Skip to content

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

Open
PierrunoYT wants to merge 7 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 7 commits into
Gitlawb:mainfrom
PierrunoYT:docs/readme-updates

Conversation

@PierrunoYT

@PierrunoYT PierrunoYT commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Summary

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 zero upgrade command to download/verify/install available CLI updates.
    • Added a /new command in the interactive TUI to start a fresh session while keeping prior sessions saved.
  • Documentation

    • Updated README files with a Discord invite/join badge and a new Community section.
    • Revised update instructions to clearly distinguish zero update --check vs zero update --apply, document exit-code behavior and JSON output, and recommend zero upgrade for existing installs.

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

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 552f4a7c-092b-41d4-823a-ca8378b90e17

📥 Commits

Reviewing files that changed from the base of the PR and between 8c29600 and f475e22.

📒 Files selected for processing (2)
  • README.md
  • README_ZH.md
✅ Files skipped from review due to trivial changes (2)
  • README_ZH.md
  • README.md

Walkthrough

Docs and CLI help now surface /new, zero upgrade, and Discord community links, while docs/UPDATE.md expands the update and install flow details.

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 entries, and zero upgrade references.
Update flow semantics
docs/UPDATE.md
Revises --check, --apply, --target, --json, and installer guidance.
CLI help output
internal/cli/app.go, internal/cli/app_test.go
Adds upgrade to the global help text and its assertion.

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

Possibly related PRs

  • Gitlawb/zero#63: Modifies the same CLI help generation and test surface to add command entries to the displayed help.
  • Gitlawb/zero#71: Touches internal/cli/app.go help wording around update behavior, similar to this PR’s help text changes.
  • Gitlawb/zero#461: Adds the zero upgrade command behavior that these docs and help updates reference.

Suggested reviewers: gnanam1990, kevincodex1

🚥 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 documentation and CLI help updates in the PR.
Linked Issues check ✅ Passed The PR matches #488 by adding /new, zero upgrade, UPDATE.md install-flow docs, and Discord links in both READMEs.
Out of Scope Changes check ✅ Passed The CLI help and test updates are in scope because they directly support the documented upgrade command changes.
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
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.

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