Commit graph

676 commits

Author SHA1 Message Date
Chad Metcalf
8536dc3c8c
fix: keep slash command suggestions visible when typing exact command names (#157)
Previously, typing "/org" would hide the suggestion immediately upon
completion. Now suggestions only disappear when user presses space
or Enter, making it clearer that the command is available to execute.

Fixes UX issue where users lose visual confirmation of valid commands.
2025-08-05 16:04:26 -07:00
Tomasz Stefaniak
ee34a701ef
Merge pull request #161 from continuedev/tomasz/eslint
ESLint
2025-08-05 15:36:39 -07:00
Tomasz Stefaniak
22c8e1b6e3 Merge branch 'main' into tomasz/eslint 2025-08-05 15:31:11 -07:00
Tomasz Stefaniak
1fee6fe16f improv: lint 2025-08-05 14:06:08 -07:00
Tomasz Stefaniak
672c1c9445
Merge pull request #160 from continuedev/tomasz/add-log-watcher
improv: watch logs
2025-08-05 10:30:31 -07:00
Tomasz Stefaniak
6bc3033a8c feat: linting 2025-08-05 10:21:36 -07:00
Tomasz Stefaniak
1e675afcca improv: watch logs 2025-08-05 08:22:43 -07:00
Nate Sesti
194f699b40
Merge pull request #156 from continuedev/auto-compact
feat: compact slash command
2025-08-05 07:38:02 -07:00
Nate
49ff60026c fix: address feedback 2025-08-05 10:32:22 -04:00
Nate
73135ffdc5 fix: address feedback 2025-08-05 10:23:48 -04:00
Nate
0b7880bff1 auto-compaction 2025-08-05 09:57:25 -04:00
Nate
e27e1db6d6 feat: compact slash command 2025-08-04 15:53:34 -04:00
Dallin Romney
5aeb47fcb6
Merge pull request #153 from continuedev/fix/plan-mode-tool-filtering
fix: prevent Bash tool from being presented in plan mode
2025-08-04 10:23:21 -07:00
Chad Metcalf
311d5ee8b2
fix: prevent Bash tool from being presented in plan mode
Fix service initialization race condition where getAllTools() would return
all tools when ToolPermissionService wasn't ready, causing plan mode to
incorrectly include excluded tools like Bash.

The issue occurred in GitHub Actions where `cn -p` (plan mode) should exclude
Bash tool, but due to timing issues, Bash was being presented to the LLM and
then failing during execution with permission errors.

Changes:
- Fix getAllTools() to properly pass permissions to filterExcludedTools()
- Throw descriptive error when service not initialized instead of fallback
- Add comprehensive regression tests covering all modes and edge cases

Fixes automated PR review failures in GitHub Actions workflows.
2025-08-04 10:15:16 -07:00
Dallin Romney
46ea3e64d0
Merge pull request #145 from continuedev/dallin/install-rg
fix: Search tool: install rg if not found, show error messages if tool errors
2025-08-04 08:30:17 -07:00
Dallin Romney
4caa49b1c1 merge: main 2025-08-04 08:26:37 -07:00
Nate Sesti
bf0ed2f22e
Merge pull request #150 from continuedev/nate/reorder-system-commands
Reorder system commands for better UX
2025-08-03 19:01:04 -07:00
Nate
a902d018f6 fix: add description 2025-08-03 21:57:15 -04:00
Nate
b7e5038891 Reorder system commands for better UX 2025-08-03 21:55:03 -04:00
Nate Sesti
8cfc2f0965
Merge pull request #146 from continuedev/standardize-services-actual
refactor: base service class + migrate to vitest
2025-08-03 18:47:36 -07:00
Nate
9d914c7486 fix tests on windows 2025-08-03 19:27:25 -04:00
Nate
889421049f fix tool permissions bug 2025-08-03 19:19:46 -04:00
Nate
52cefcfa02 refactor: avoid double name property for tools. only use "name" 2025-08-03 18:43:33 -04:00
Nate
c0e292e390 fix tests 2025-08-03 17:43:42 -04:00
Nate
a9e6cd7352 fix tool permissions bug 2025-08-02 20:12:35 -04:00
Nate
bbab58e13c Merge branch 'standardize-services-actual' of https://github.com/continuedev/cli into standardize-services-actual 2025-08-02 19:37:10 -04:00
Nate
70956fbcf3 address feedback 2025-08-02 19:36:56 -04:00
Nate Sesti
898936240c
Update src/services/ConfigService.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-08-02 16:31:56 -07:00
Nate Sesti
d4e84b20ac
Update src/services/BaseService.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-08-02 16:31:49 -07:00
Nate Sesti
2c15a7ecfa
Update src/util/exponentialBackoff.test.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-08-02 16:31:37 -07:00
Nate Sesti
0347242d91
Update src/services/ToolPermissionService.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-08-02 16:31:12 -07:00
Nate Sesti
3a6992cf82
Update src/services/ToolPermissionService.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-08-02 16:30:41 -07:00
Nate
c621961f8d refactor: base service class + migrate to vitest 2025-08-02 19:17:46 -04:00
Dallin Romney
4fa0492037 fix: install rg if not found, show error messages if tool errored 2025-08-01 18:36:32 -07:00
Dallin Romney
48fd27d6bb
Merge pull request #137 from continuedev/add-no-think-flag
feat: add --silent flag to strip thinking tags from headless output
2025-08-01 17:00:13 -07:00
Tomasz Stefaniak
1e25f1fd43
Merge pull request #144 from continuedev/tomasz/fix-auth
improv: surface errors
2025-08-01 16:47:04 -07:00
Tomasz Stefaniak
e653516fb1 chore: clean up 2025-08-01 16:38:33 -07:00
Tomasz Stefaniak
662891f5d9 improv: error handling 2025-08-01 16:16:58 -07:00
Tomasz Stefaniak
41774ee373 improv: surface errors 2025-08-01 16:00:36 -07:00
Dallin Romney
431db20611
Merge pull request #138 from continuedev/nate/add-spec-documentation
Add spec documentation for cn CLI development guidelines
2025-08-01 13:37:09 -07:00
Nate
58e74ddb84 more notes 2025-08-01 12:47:46 -07:00
Nate Sesti
c48a37ff32
Merge pull request #135 from continuedev/nate/disable-scheduled-releases
Disable scheduled releases in GitHub workflow
2025-08-01 12:43:05 -07:00
Nate
a0fd27c826 more notes 2025-08-01 12:38:16 -07:00
Nate
b7b7bf3581 Add spec documentation for cn CLI development guidelines 2025-08-01 12:29:23 -07:00
Chad Metcalf
8fa31ed082
feat: add --silent flag to strip thinking tags from headless output
Add --silent flag to headless mode (-p/--print) that removes <think></think>
tags and excess whitespace from LLM responses. This enables clean output
suitable for shell piping and automation.

## Why --silent instead of --no-think

The flag was renamed from --no-think to --silent because:
- Commander.js treats --no- prefix as negation flags, expecting a base --think option
- --silent provides clearer semantic meaning for "quiet, clean output"
- Follows Unix convention where --silent typically means suppress extra output

## Problem Solved

Many models (like Nemotron - Llama 3.3 Nemotron Super 49B v1.5) emit <think></think>
tags that interfere with shell piping:

Without --silent:
```
$ cn -p "Echo a shell script that prints 'Hello World' Output only the script and NOTHING ELSE. No code fences. No markdown."

<think>
I need to write a shell script. Let me think about this.
The user wants a simple Hello World script.
</think>

#\!/bin/bash
echo "Hello World"
```

With --silent:
```
$ cn -p --silent "Echo a shell script that prints 'Hello World' Output only the script and NOTHING ELSE. No code fences. No markdown."

#\!/bin/bash
echo "Hello World"
```

This makes piping work correctly:
```
$ eval $(cn -p --silent "Write a shell script that prints 'Hello World'")
Hello World
```

## Features

- Strips all <think></think> blocks and their content
- Reduces excessive whitespace (3+ consecutive newlines become 2)
- Works with --format json flag
- Includes comprehensive unit and e2e tests
- Only available with -p/--print flag (headless mode)
2025-08-01 10:36:01 -07:00
Nate
8d35ad1a5e Disable scheduled releases in GitHub workflow 2025-07-31 19:59:01 -07:00
Nate Sesti
a0a053a740
Merge pull request #133 from continuedev/nate/cli-readme-permissions-ui-updates
Update README and normalize write_checklist tool naming
2025-07-31 13:25:15 -07:00
Nate
e8d1303dd3 fix: address feedback 2025-07-31 13:19:11 -07:00
Nate
99c6660981 fix: address feedback 2025-07-31 13:15:52 -07:00
Nate
e17180a319 revert README.md 2025-07-31 13:09:25 -07:00