Skip to content

Add no-argument interactive mode to fvdb-issue#466

Merged
harrism merged 9 commits into
openvdb:mainfrom
harrism:issue-465-fvdb-issue-with-no-arguments-should-list
Feb 18, 2026
Merged

Add no-argument interactive mode to fvdb-issue#466
harrism merged 9 commits into
openvdb:mainfrom
harrism:issue-465-fvdb-issue-with-no-arguments-should-list

Conversation

@harrism

@harrism harrism commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #465

image

When fvdb-issue is invoked with no arguments, it now:

  • Scans worktrees from both FVDB_CORE_PATH and FVDB_RC_PATH for directories matching the *-issue-<number> naming pattern
  • Fetches each issue's title and state from GitHub via gh
  • Displays a numbered, color-coded list (green for OPEN, red for CLOSED)
  • Lets the user select a worktree and choose to open it in Cursor (via fvdb-open) or close/remove it (via fvdb-close)

Existing behavior (fvdb-issue <number> to create a new worktree) is unchanged.

Also adds a "Workspace" section to the current-issue.md template so AI agents know they are working in a worktree and should not edit the main repository checkout.

Also adds a PR label directive to AGENTS.md.

Test plan

  • Run fvdb-issue with no arguments — verify it lists issue worktrees with titles and status
  • Select a worktree, then choose q to cancel — verify clean exit
  • Select a worktree, then choose o — verify it delegates to fvdb-open
  • Select a worktree, then choose c — verify it delegates to fvdb-close
  • Run fvdb-issue --help — verify updated usage text
  • Run fvdb-issue <number> — verify existing create-worktree flow is unchanged
  • Remove all issue worktrees and run fvdb-issue — verify "No issue worktrees found" message

Made with Cursor

When invoked without arguments, fvdb-issue now lists existing issue
worktrees from both repos, fetches each issue's title and state from
GitHub, and lets the user select one to open in Cursor or close/remove.

Also adds a "Workspace" section to the current-issue.md template so
agents know they are working in a worktree and should not edit the
main repository checkout.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Mark Harris <mharris@nvidia.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@harrism harrism requested a review from a team as a code owner February 12, 2026 00:23
@harrism harrism added the enhancement New feature or request label Feb 12, 2026
Mirror the existing "set appropriate labels" guidance from the Issues
section into the Pull Requests section so agents apply labels when
opening PRs.

Signed-off-by: Mark Harris <mharris@nvidia.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@harrism harrism requested a review from Copilot February 12, 2026 00:56
@harrism harrism added this to fVDB Feb 12, 2026
@harrism harrism moved this to In Progress in fVDB Feb 12, 2026

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

Adds an interactive “no-argument” mode to fvdb-issue so developers can discover and manage existing issue worktrees across both fvdb-core and fvdb-reality-capture, and updates agent guidance to better reflect the workflow.

Changes:

  • Add fvdb-issue interactive mode (no args): scan issue worktrees, fetch issue metadata via gh, and offer open/close actions.
  • Update fvdb-issue help/usage text and enrich the generated current-issue.md template with a “Workspace” section.
  • Fix/extend AI agent contribution guidelines in AGENTS.md (labeling guidance / formatting).

Reviewed changes

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

File Description
devtools/worktree/fvdb-issue Implements no-arg interactive listing/management of issue worktrees; updates usage text; adds worktree guidance to generated agent context.
AGENTS.md Adjusts issue/PR guideline bullets (labeling) and fixes formatting.

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

Comment thread devtools/worktree/fvdb-issue
Comment thread devtools/worktree/fvdb-issue Outdated
Comment thread devtools/worktree/fvdb-issue
Comment thread devtools/worktree/fvdb-issue
Signed-off-by: Mark Harris <mharris@nvidia.com>
Signed-off-by: Mark Harris <mharris@nvidia.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 2 out of 2 changed files in this pull request and generated 2 comments.


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

Comment thread devtools/worktree/fvdb-issue Outdated
Comment thread devtools/worktree/fvdb-issue
Signed-off-by: Mark Harris <mharris@nvidia.com>
Signed-off-by: Mark Harris <mharris@nvidia.com>
@harrism harrism force-pushed the issue-465-fvdb-issue-with-no-arguments-should-list branch from 5f75f29 to 16f08ed Compare February 17, 2026 02:31
Signed-off-by: Mark Harris <mharris@nvidia.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 2 out of 2 changed files in this pull request and generated 3 comments.


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

Comment thread devtools/worktree/fvdb-issue
Comment thread devtools/worktree/fvdb-issue Outdated
Comment thread devtools/worktree/fvdb-issue Outdated
- Use 'git worktree list --porcelain' and parse 'worktree <path>' lines
  so paths containing spaces are handled correctly.
- Replace associative arrays (Bash 4+) with parallel arrays and linear
  lookup so the script runs on macOS system bash (3.2).

Signed-off-by: Mark Harris <mharris@nvidia.com>
Co-authored-by: Cursor <cursoragent@cursor.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 2 out of 2 changed files in this pull request and generated 1 comment.


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

Comment thread AGENTS.md

@swahtz swahtz 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.

Nice, looks great!

@harrism harrism merged commit ded4c66 into openvdb:main Feb 18, 2026
41 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in fVDB Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

fvdb-issue with no arguments should list and manage existing issue worktrees

3 participants