Opencommit Version
v3.2.19
Node Version
v22.13.1
NPM Version
10.9.2
What OS are you seeing the problem on?
No response
What happened?
A bug happened!
Expected Behavior
The operation should be cancelled (process exits).
Current Behavior
The commit proceeds with Symbol(clack:cancel) as the commit message:
[llama.cpp d0426fd] Symbol(clack:cancel)
1 file changed, 23 insertions(+), 2 deletions(-)
Possible Solution
I don't know but AI said:
@clack/prompts text() returns Symbol(clack:cancel) on Ctrl+C instead of throwing. The isCancel() check is missing after the "Edit" text input in commit.ts, so the cancel symbol is treated as the edited commit message.
Steps to Reproduce
Steps to Reproduce
- Run oco with staged files
- Select "Edit" at "Confirm the commit message?"
- Press Ctrl+C at the text input prompt
Relevant log output
[Pasted ~14 lin■ Please edit the commit message: (press Enter to continue)
│ feat(README.md): update OCO_AI_PROVIDER list to include llamacpp
│
│
◇ ✔ Successfully committed
│
└ [llama.cpp d0426fd] Symbol(clack:cancel)
1 file changed, 23 insertions(+), 2 deletions(-)
│
◆ Choose a remote to push to
│ ● origin
│ ○ upstream
│ ○ don't push
Opencommit Version
v3.2.19
Node Version
v22.13.1
NPM Version
10.9.2
What OS are you seeing the problem on?
No response
What happened?
A bug happened!
Expected Behavior
The operation should be cancelled (process exits).
Current Behavior
The commit proceeds with Symbol(clack:cancel) as the commit message:
[llama.cpp d0426fd] Symbol(clack:cancel)
1 file changed, 23 insertions(+), 2 deletions(-)
Possible Solution
I don't know but AI said:
Steps to Reproduce
Steps to Reproduce
Relevant log output