Skip to content

feat: wait for root pattern as well in serial#1194

Open
AlexKaravaev wants to merge 1 commit into
mainfrom
alex/enable-sudo-in-stage
Open

feat: wait for root pattern as well in serial#1194
AlexKaravaev wants to merge 1 commit into
mainfrom
alex/enable-sudo-in-stage

Conversation

@AlexKaravaev
Copy link
Copy Markdown
Contributor

@AlexKaravaev AlexKaravaev commented May 7, 2026

on stage images we have root instead of worldcoin

@AlexKaravaev AlexKaravaev requested a review from a team as a code owner May 7, 2026 12:18
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

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: 4e4b141e34

ℹ️ 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 hil/src/commands/cmd.rs

const PATTERN_START: &str = "hil_pattern_start-";
const PATTERN_END: &str = "-hil_pattern_end";
const SHELL_PROMPT_PATTERNS: &[&str] = &["worldcoin@id", "root@"];
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Use a specific root prompt token

Adding "root@" to SHELL_PROMPT_PATTERNS makes wait_for_prompt succeed on any command output containing that substring, not just an actual shell prompt. In serial mode this can occur in normal output (for example log lines or text with root@...), so the post-command wait may return early and the code will issue echo $? while the original command is still running, producing incorrect status or interleaved input. Please match a prompt-specific token (e.g., the full Orb host prefix and/or prompt suffix) instead of a generic substring.

Useful? React with 👍 / 👎.

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