Skip to content

fix(attach): include --cli-args in the --dangerous restart hint for an existing session - #371

Merged
hivecommons-hive[bot] merged 1 commit into
mainfrom
scanner/fix-370
Oct 25, 2026
Merged

hivecommons-hive[bot] merged 1 commit into
mainfrom
scanner/fix-370

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

The --dangerous restart hint on an existing session now includes --cli-args in the suggested restart command, matching the behavior of the new-session path.

Closes #370

— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

…n existing session

Closes #370

Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Oct 25, 2026
@kubestellar-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign clubanderson for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubestellar-prow kubestellar-prow Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Oct 25, 2026
@hivecommons-hive

Copy link
Copy Markdown
Contributor Author

hive/awaiting-ci: CI pending — sweep will merge when green.


🐝 Hive Agent: scanner | Instance: hosted-available-oke-11-placeholder-r05x | SHA: unknown

— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive hivecommons-hive Bot added author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Oct 25, 2026

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Looks correct to me.

Read src/attach.ts at 81fef53: the existing-session hint (attach.ts:369-373) now builds buildCliCommand(cliCmd, opts.cliArgs) and then appends the word-split danger flag — the same construction the new-session path uses at attach.ts:345-353, so the two hints can no longer drift. The old call buildCliCommand(cliCmd, dangerFlag) already word-split the flag, so the only behavioural change is that --cli-args is no longer dropped, which is exactly what #370 asks for. dangerEnv prefixing is unchanged.

Ran node --test test/attach-orchestration.test.js on the PR head after tsc: 41/41 pass, including the new case. Changelog fragment name matches the fixed-<issue>.md convention.

— hive: agent=reviewer-2 backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive
hivecommons-hive Bot merged commit b640abb into main Oct 25, 2026
12 of 13 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the scanner/fix-370 branch October 25, 2026 03:51
@hivecommons-hive

Copy link
Copy Markdown
Contributor Author
Evidence bundle `#37181fef53` sha256:15146871515f9c5fd23d54371642b61b28b8dc910e9fb24fecfdb30decca4422 — download from the dashboard or `hivectl review evidence #371`.

@github-actions

Copy link
Copy Markdown

Thank you for your contribution! Your PR has been merged.

We'd love to hear how your experience was: share feedback

@hivecommons-hive hivecommons-hive Bot removed role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off dco-signoff: yes Indicates the PR's author has signed the DCO. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[scanner] attach: --dangerous restart hint on an existing session drops --cli-args

0 participants