Skip to content

feat(cli): floo logs build and floo logs --preview replace deploys logs and previews logs - #400

Merged
pdonohoe02 merged 3 commits into
mainfrom
claude/project-thread-9c6u2q
Nov 7, 2026
Merged

pdonohoe02 merged 3 commits into
mainfrom
claude/project-thread-9c6u2q

Conversation

@pdonohoe02

Copy link
Copy Markdown
Contributor

Summary

Step 4 of the deploy rework (getfloo/floo#4262), the logs row of the fold table: logs, deploys logs and previews logs become one floo logs.

  • floo logs build [DEPLOY_ID] [--app] [--follow] shows a deploy's build logs, by default the latest deploy. It is the old deploys logs, unchanged.
  • floo logs --preview <branch> (and logs query/logs tail --preview) reads the runtime logs of the preview's latest deploy. Every runtime log filter works with it (--since, --search, --severity, --live...), which previews logs never had. It conflicts with --env, --deployment and --requests.
  • floo logs build --preview <branch> shows that preview deploy's build logs.
  • floo deploys logs and floo previews logs fail with COMMAND_REMOVED and name the replacement.

Issue Closure

Part of getfloo/floo#4262 (step 4). Does not close it.

Changes

  • src/cli.rs: LogsSubcommands::Build, LogsOptions.preview; DeploysSubcommands::Logs and PreviewsSubcommands::Logs removed; runtime log dispatch moved into runtime_logs so every arm reaches the post-command update step; help examples updated.
  • src/commands/deploys.rs: logs takes preview.
  • src/commands/previews.rs: latest_deploy_id replaces previews::logs; the previews status next hint names floo logs --preview.
  • src/commands/logs.rs: --preview sets the deployment and the preview env.
  • src/commands/removed.rs: two entries. src/commands/skills.rs: the two removed read-only permissions go (logs already covers them).
  • src/cli/guidance_tests.rs: the guidance checker skips an option's value, so floo logs --preview feat-x is no longer read as an unknown subcommand of floo logs. A stale subcommand after an option value is still caught (test added).

Test Plan

  • cargo fmt, cargo clippy --all-targets -- -D warnings
  • cargo test: all pass, with new mock tests for logs --preview, logs build --preview and logs build <id>, clap tests for the conflicts, and a removed-command case.

Discovered Issues

None.


Generated by Claude Code

…gs and previews logs

`floo logs build [DEPLOY_ID] [--follow]` shows a deploy's build logs, by
default the latest deploy. `--preview <branch>` on `floo logs` (and its
query and tail) reads the runtime logs of the preview's latest deploy, with
every runtime log filter; `floo logs build --preview <branch>` shows that
deploy's build logs. `floo deploys logs` and `floo previews logs` fail with
COMMAND_REMOVED and name the replacement.

The guidance checker now skips an option's value, so `floo logs --preview
feat-x` is not read as an unknown subcommand of `floo logs`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Eufw476uDAxxXQi632Y2Eq
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T20:08:52.833316Z 1947442 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 60f5ea2da2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/cli.rs Resolved
`floo logs --preview feat-x build` read the app's latest deploy, because the
parent's --preview was dropped. It now selects the preview's deploy, and a
deploy ID with a parent --preview stops with INVALID_ARGUMENTS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Eufw476uDAxxXQi632Y2Eq

Copy link
Copy Markdown
Contributor Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6d4909689b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/cli.rs Resolved
…ommand

`floo logs --preview feat-x query` read app-wide logs, because query and tail
used only their own options. A subcommand's options now fall back to the ones
before it (the subcommand wins; --live and --tail stay its own), and --preview
with --env, --deployment or --requests across the two levels stops with
INVALID_ARGUMENTS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Eufw476uDAxxXQi632Y2Eq

Copy link
Copy Markdown
Contributor Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 1947442930

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@pdonohoe02
pdonohoe02 merged commit 266d1c8 into main Nov 7, 2026
6 checks passed
@pdonohoe02
pdonohoe02 deleted the claude/project-thread-9c6u2q branch November 7, 2026 20:12
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.

2 participants