--sandbox and --approve-for-me cannot be combined, and the help text implies they can

オープン 初心者向け
#7 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
shell
領域
cli

調査の方向性

まず genie exec --help のオプション定義と、--sandbox と --approve-for-me の併用を拒否する引数検証を読みます。payloadにはそれらのファイル名が記載されていません。現在のヘルプテキストを確認し、issueに記載されたコマンドで再現します。ヘルプに --approve-for-me はworkspace-writeサンドボックスを設定し、-s または --sandbox と併用できないと説明されるか、指定された組み合わせが受け付けられれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Release version

v0.3.0

What happened?

--sandbox and --approve-for-me cannot be used together, but the help text suggests they fit together.

$ genie exec -s workspace-write --approve-for-me "noop"
error: the argument '--sandbox <SANDBOX_MODE>' cannot be used with '--approve-for-me'

The help text for --approve-for-me says:

Route approval requests through automatic review using the workspace-write sandbox

A reader takes this to mean you should pair it with -s workspace-write, which then fails.

Expected: the help text for --approve-for-me says that it sets the workspace-write sandbox itself and cannot be combined with -s or --sandbox. Accepting -s workspace-write as a no-op would also work.

Steps to reproduce
  1. Run genie exec -s workspace-write --approve-for-me "noop".
  2. The command exits with the error above.
  3. Run genie exec --help and read the --approve-for-me entry.
Environment

macOS (Apple silicon), Genie Code CLI installed with install.sh.

主要言語
言語のデータがありません
スター
13
フォーク
1
平均マージ
35分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

databricks/genie-code-cli のほかの issue

databricks/genie-code-cli の issue をすべて見る

似ている issue

CLI の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。