Skip to content

fix(cli): keep the selected instance in the commands that hints suggest - #74

Merged
hectorvent merged 5 commits into
mainfrom
fix/instance-hints
Nov 4, 2026
Merged

hectorvent merged 5 commits into
mainfrom
fix/instance-hints

Conversation

@hectorvent

@hectorvent hectorvent commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Commands suggested by errors, env and doctor dropped the selected instance, so pasting one acted on the default instance instead.

  • Hints now carry --profile, --container and an explicit --endpoint.
  • After a failed pull, the suggested start --pull never also keeps the --port, --image, --persist, --services and --namespace you typed.
  • env load hints are quoted for the shell they are for, and add -o text after a profile, which may set output: json.
  • doctor fix lines in -o json gain the selector only when an instance is selected.

Type of change

  • Bug fix (fix:)
  • New feature (feat:)
  • Breaking change (feat!: or fix!:)
  • Docs / chore

Product trees affected

  • AWS (root tree)
  • GCP (commands/gcp/)
  • Azure (commands/az/)
  • N/A (shared infrastructure, docs, CI)

Checklist

  • mvn test passes locally
  • New or updated tests added (or explained below why not needed)
  • README.md updated (if a command or flag changed)
  • Native binary verified (mvn package -Pnative), required if Jackson serialization or dependencies changed
  • Commit messages / PR title follow Conventional Commits: a feat/fix/perf subject becomes the release note, so CHANGELOG.md needs no hand edit
  • I have no more than 2 open, non-draft pull requests and no more than 4 open pull requests in total (drafts included) in this repository (maintainers and dependency bots are exempt).

Tests

InstanceHintsTest covers all four trees; StartPreflightTest now expects the selector. 761 tests, 0 failures. Ran the failed-pull and doctor hints from a fat JAR with this change merged alongside the other open work, not on this branch alone. Native build and smoke pass on linux/amd64 and darwin/arm64 in that same merged build. OCI is covered too: the template has no box for it.

Commands printed by errors, env and doctor now carry --profile, --container and
an explicit --endpoint, so pasting one acts on the same instance. After a failed
pull, the suggested start also keeps the --port, --image, --persist, --services
and --namespace you typed.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
@greptile-apps

greptile-apps Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; both numbered findings are fixed and no new actionable issues were found.

Summary

Follow-up hints keep the selected instance. Failed-pull hints also retain the supplied start settings.

  • Follow-up hints keep pointing to the selected Floci instance.
  • A failed-pull retry keeps the start options you typed.
  • Shell load hints keep the selected instance and fit the chosen shell.

Reviews (4) · Last reviewed commit: "fix(cli): keep values in env load hints ..." · Reviewed by Greptile

…ry shell

A profile can set output: json, so the hint now adds -o text after --profile; pasted without it, the shell received JSON. Selector values are quoted for the shell the hint is for, since PowerShell and fish do not read the POSIX form. Addresses the review of #74.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
Signed-off-by: Hector Ventura <hectorvent@gmail.com>

# Conflicts:
#	plugin.json
#	skills/floci/SKILL.md
#	src/main/java/io/floci/cli/commands/StartCommand.java
This branch changes the skill, and 1.0.2 shipped with #73.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
The hint is a comment in the output people feed to eval, so a line break in a selector value ended the comment and ran the rest. Such a value now prints as a placeholder. Fish and PowerShell always get quotes, because the plain-word rule is POSIX and @team is a splat in PowerShell. Addresses the review of #74.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
@hectorvent
hectorvent merged commit 882c0ea into main Nov 4, 2026
5 checks passed
hectorvent added a commit that referenced this pull request Nov 4, 2026
This branch changes the skill, and 1.0.3 shipped with #74.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
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.

1 participant