Skip to content

Document --annotation flag for viam module reload#5012

Open
shannonbradshaw wants to merge 2 commits intomainfrom
claude/add-reload-annotation-flag
Open

Document --annotation flag for viam module reload#5012
shannonbradshaw wants to merge 2 commits intomainfrom
claude/add-reload-annotation-flag

Conversation

@shannonbradshaw
Copy link
Copy Markdown
Collaborator

Source changes

  • RSDK-13629 - reload_annotation field rdk#5951 (ba9914e): Added --annotation flag to viam module reload command and reload_annotation field to the module config
  • viamrobotics/app#11729 (b84c46b): Backend support for reload_annotation field in AppModuleConfig

Docs changes

  • docs/cli/reference.md: Added --annotation row to the module named arguments table, alphabetically before --binary
  • docs/build-modules/module-reference.md: Added a reload flags paragraph listing all reload-specific flags including --annotation, parallel to the existing reload-local flags paragraph

How I found these

  • Diff scan: new moduleFlagAnnotation constant and StringFlag in rdk/cli/app.go reload command definition
  • Grep: searched entire docs repo for annotation, reload_annotation, viam module reload — the flag was absent from the documented flags
  • Verified the flag applies only to reload (not reload-local) by checking the command definitions in rdk/cli/app.go

Generated by daily docs change agent


Generated by Claude Code

The reload command gained an --annotation flag (rdk#5951, app#11729)
that lets users describe the purpose of a reload build. The annotation
is stored alongside the reload metadata in the machine config.

https://claude.ai/code/session_01LW3uGKyHAqLD9xsZYQ296m
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 24, 2026

Deploy Preview for viam-docs ready!

Name Link
🔨 Latest commit 07a366b
🔍 Latest deploy log https://app.netlify.com/projects/viam-docs/deploys/69eb3684a841b800090164e8
😎 Deploy Preview https://deploy-preview-5012--viam-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 40 (🔴 down 1 from production)
Accessibility: 99 (no change from production)
Best Practices: 92 (🟢 up 9 from production)
SEO: 89 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Apr 24, 2026
@shannonbradshaw shannonbradshaw requested a review from Copilot April 24, 2026 09:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Documents the newly-added --annotation flag for viam module reload, ensuring CLI and module build docs reflect the updated reload workflow and metadata.

Changes:

  • Added --annotation to the viam module named-arguments table in the CLI reference.
  • Added a reload-specific flags summary paragraph (including --annotation) to the module reference, parallel to the existing reload-local flags paragraph.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docs/cli/reference.md Documents --annotation as a named argument for viam module reload.
docs/build-modules/module-reference.md Adds a consolidated reload flags list including the new --annotation flag.

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

Comment thread docs/build-modules/module-reference.md Outdated
Comment on lines +498 to +504
`reload` flags: `--part-id` (target machine part), `--path` (root of git
repo to build), `--annotation` (text note describing the purpose of this
reload build), `--model-name` (add a resource to config with this model
triple), `--resource-name` (name the resource instance), `--id` (module ID),
`--cloud-config` (path to `viam.json`, alternative to `--part-id`),
`--workdir` (subdirectory containing `meta.json`), `--local` (run entrypoint
directly on localhost).
Copy link

Copilot AI Apr 24, 2026

Choose a reason for hiding this comment

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

The new reload flags summary omits --module, which is documented in the CLI reference as applicable to reload/reload-local for specifying a non-current-directory meta.json path. Add --module to this reload flags list (and consider adding it to the adjacent reload-local flags list for consistency/completeness).

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in 07a366b. Added --module to both the reload and reload-local flags paragraphs.


Generated by Claude Code

@viamrobotics-overwatch
Copy link
Copy Markdown

Hey @shannonbradshaw — CI is green and no reviewer is assigned yet. Could you request one when you have a chance?

Auto-comment from overwatch. Will not re-nudge for 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to build This pull request is marked safe to build from a trusted zone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants