Conversation
Removes the blind replacement of newlines with ` && ` in `inject_command` and `inject_raw_only`, which corrupted commands containing line continuations (`\`) or heredocs. Enhances `flatten_command_if_safe` to properly parse line continuations, replacing them with spaces while safely joining distinct commands with ` && `. This ensures that multi-line AI responses execute correctly in the terminal. Co-authored-by: insign <1113045+insign@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
O que este PR faz: Corrige um bug crítico que corrompia comandos de múltiplas linhas durante a injeção no terminal. O código remove uma substituição incorreta (
\npor&&) e melhora a detecção de quebras de linha (\), permitindo que a CLI junte esses comandos com espaços corretamente.Por que é útil: Comandos com continuações de linha (
\) gerados por modelos de IA (ex: comandos Docker ou comandos longos) falhavam sintaticamente ao serem executados no shell do usuário. Essa correção garante a execução confiável (Reliability & Bug Fix) de comandos complexos gerados em modo terminal, aumentando muito a utilidade e segurança da ferramenta.PR created automatically by Jules for task 17210042863177141457 started by @insign