From bee8e2534380a8db261fd18e3c6f33ccdfcc0bd3 Mon Sep 17 00:00:00 2001 From: Mohamed Ashraf Date: Tue, 25 Nov 2025 02:57:42 +0200 Subject: [PATCH 1/6] change the prompt suffix to be >>> and the prompt for github app broswer installation --- codeflash/cli_cmds/cmd_init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codeflash/cli_cmds/cmd_init.py b/codeflash/cli_cmds/cmd_init.py index 286d3d19e..0bbb0f09a 100644 --- a/codeflash/cli_cmds/cmd_init.py +++ b/codeflash/cli_cmds/cmd_init.py @@ -1112,10 +1112,10 @@ def install_github_app(git_remote: str) -> None: click.prompt( f"Finally, you'll need to install the Codeflash GitHub app by choosing the repository you want to install Codeflash on.{LF}" f"I will attempt to open the github app page - https://github.com/apps/codeflash-ai/installations/select_target {LF}" - f"Press Enter to open the page to let you install the app…{LF}", + f"Please Press ENTER to open the page to let you install the app…{LF}", default="", type=click.STRING, - prompt_suffix="", + prompt_suffix=">>> ", show_default=False, ) click.launch("https://github.com/apps/codeflash-ai/installations/select_target") From e1d553da6dac726f186f779583e3c62afccae788 Mon Sep 17 00:00:00 2001 From: mashraf-222 Date: Tue, 25 Nov 2025 03:03:59 +0200 Subject: [PATCH 2/6] Update codeflash/cli_cmds/cmd_init.py Co-authored-by: Saurabh Misra --- codeflash/cli_cmds/cmd_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codeflash/cli_cmds/cmd_init.py b/codeflash/cli_cmds/cmd_init.py index 0bbb0f09a..587d6b790 100644 --- a/codeflash/cli_cmds/cmd_init.py +++ b/codeflash/cli_cmds/cmd_init.py @@ -1112,7 +1112,7 @@ def install_github_app(git_remote: str) -> None: click.prompt( f"Finally, you'll need to install the Codeflash GitHub app by choosing the repository you want to install Codeflash on.{LF}" f"I will attempt to open the github app page - https://github.com/apps/codeflash-ai/installations/select_target {LF}" - f"Please Press ENTER to open the page to let you install the app…{LF}", + f"Please, press ENTER to open the app installation page{LF}", default="", type=click.STRING, prompt_suffix=">>> ", From 1893dce94562c4cd74968d9a1c3bff45d0408ccc Mon Sep 17 00:00:00 2001 From: Mohamed Ashraf Date: Tue, 25 Nov 2025 03:08:20 +0200 Subject: [PATCH 3/6] update the requested another prompts --- codeflash/cli_cmds/cmd_init.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/codeflash/cli_cmds/cmd_init.py b/codeflash/cli_cmds/cmd_init.py index 587d6b790..e577039f2 100644 --- a/codeflash/cli_cmds/cmd_init.py +++ b/codeflash/cli_cmds/cmd_init.py @@ -1120,10 +1120,10 @@ def install_github_app(git_remote: str) -> None: ) click.launch("https://github.com/apps/codeflash-ai/installations/select_target") click.prompt( - f"Press Enter once you've finished installing the github app from https://github.com/apps/codeflash-ai/installations/select_target{LF}", + f"Please, Press ENTER once you've finished installing the github app from https://github.com/apps/codeflash-ai/installations/select_target{LF}", default="", type=click.STRING, - prompt_suffix="", + prompt_suffix=">>> ", show_default=False, ) @@ -1139,10 +1139,10 @@ def install_github_app(git_remote: str) -> None: click.prompt( f"❌ It looks like the Codeflash GitHub App is not installed on the repository {owner}/{repo}.{LF}" f"Please install it from https://github.com/apps/codeflash-ai/installations/select_target {LF}" - f"Press Enter to continue once you've finished installing the github app…{LF}", + f"Press ENTER to continue once you've finished installing the github app…{LF}", default="", type=click.STRING, - prompt_suffix="", + prompt_suffix=">>> ", show_default=False, ) count -= 1 From 1aa43ab1b2b2133f5330a45cfe74538330d327cb Mon Sep 17 00:00:00 2001 From: Mohamed Ashraf Date: Tue, 25 Nov 2025 03:10:08 +0200 Subject: [PATCH 4/6] typo fix --- codeflash/cli_cmds/cmd_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codeflash/cli_cmds/cmd_init.py b/codeflash/cli_cmds/cmd_init.py index e577039f2..e486696b2 100644 --- a/codeflash/cli_cmds/cmd_init.py +++ b/codeflash/cli_cmds/cmd_init.py @@ -1139,7 +1139,7 @@ def install_github_app(git_remote: str) -> None: click.prompt( f"❌ It looks like the Codeflash GitHub App is not installed on the repository {owner}/{repo}.{LF}" f"Please install it from https://github.com/apps/codeflash-ai/installations/select_target {LF}" - f"Press ENTER to continue once you've finished installing the github app…{LF}", + f"Please, Press ENTER to continue once you've finished installing the github app…{LF}", default="", type=click.STRING, prompt_suffix=">>> ", From 0d09bc9696b05f9ada483aa33dfa6be486f9a3f8 Mon Sep 17 00:00:00 2001 From: mashraf-222 Date: Wed, 26 Nov 2025 05:37:12 +0200 Subject: [PATCH 5/6] Update codeflash/cli_cmds/cmd_init.py Co-authored-by: Saurabh Misra --- codeflash/cli_cmds/cmd_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codeflash/cli_cmds/cmd_init.py b/codeflash/cli_cmds/cmd_init.py index e486696b2..64c1b0789 100644 --- a/codeflash/cli_cmds/cmd_init.py +++ b/codeflash/cli_cmds/cmd_init.py @@ -1139,7 +1139,7 @@ def install_github_app(git_remote: str) -> None: click.prompt( f"❌ It looks like the Codeflash GitHub App is not installed on the repository {owner}/{repo}.{LF}" f"Please install it from https://github.com/apps/codeflash-ai/installations/select_target {LF}" - f"Please, Press ENTER to continue once you've finished installing the github app…{LF}", + f"Please, press ENTER to continue once you've finished installing the github app…{LF}", default="", type=click.STRING, prompt_suffix=">>> ", From 93090fde0935c5cbaa506e753a2c9deaa83273f0 Mon Sep 17 00:00:00 2001 From: mashraf-222 Date: Wed, 26 Nov 2025 05:37:21 +0200 Subject: [PATCH 6/6] Update codeflash/cli_cmds/cmd_init.py Co-authored-by: Saurabh Misra --- codeflash/cli_cmds/cmd_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codeflash/cli_cmds/cmd_init.py b/codeflash/cli_cmds/cmd_init.py index 64c1b0789..8cceb2f91 100644 --- a/codeflash/cli_cmds/cmd_init.py +++ b/codeflash/cli_cmds/cmd_init.py @@ -1120,7 +1120,7 @@ def install_github_app(git_remote: str) -> None: ) click.launch("https://github.com/apps/codeflash-ai/installations/select_target") click.prompt( - f"Please, Press ENTER once you've finished installing the github app from https://github.com/apps/codeflash-ai/installations/select_target{LF}", + f"Please, press ENTER once you've finished installing the github app from https://github.com/apps/codeflash-ai/installations/select_target{LF}", default="", type=click.STRING, prompt_suffix=">>> ",