Commit graph

90 commits

Author SHA1 Message Date
Dallin Romney
f312596f6b updates to extra pruning step 2025-07-16 20:30:07 +02:00
Jazzcort
d130fef631 Feat: adding a warning message system and implementing compile chat mechanism
This feature include the following changes:
  - Implemented llm/compileChat that gives the webview the ability to precompile the chat messages
    before sending them to llm/streamChat where the webview can gather the pruning information and
    provide users better guides.

  - Added a optional parameter to llm/streamChat that can be used to indicate whether the chat
    messages being passed is procompiled or not, so we don't compile the chat messages twice.
    Because it's an optional parameter, we don't affect the behavior of llm/stream when it's
    called at other places.

  - Added a warning message box for the last ContinueInputBox which will display the warning
    messages and also provide some useful guides.

https://github.com/Granite-Code/granite-code/issues/22
2025-07-16 09:09:26 -04:00
Patrick Erichsen
a082de9911 Update StepContainer.tsx 2025-07-14 16:53:36 -07:00
Patrick Erichsen
1d3842653f fix response actions 2025-07-14 16:16:29 -07:00
Patrick Erichsen
3a6f928b3a Update StepContainer.tsx 2025-07-14 14:18:32 -07:00
Patrick Erichsen
5d05636891 Update StepContainer.tsx 2025-07-13 23:06:38 -07:00
Patrick Erichsen
326440f656 cleanup group header 2025-07-10 22:18:28 -07:00
Patrick Erichsen
e100d9f8ad improve tool group ui 2025-07-10 16:59:04 -07:00
Patrick Erichsen
a9e3a56a61 Fix parallel tool calls core processing and Claude API compatibility
## Key Issues Fixed

### 1. Tool Output Matching Error
- **Problem**: `compileChatMessages` only processed the last tool message, causing "no tool call found to match tool output" errors
- **Solution**: Modified to collect and process all consecutive tool messages from the end
- **Files**: `core/llm/countTokens.ts` - Enhanced tool message collection and validation logic

### 2. Claude API Missing tool_result Blocks
- **Problem**: `flattenMessages` was merging adjacent tool messages, losing individual `toolCallId` properties
- **Solution**: Prevented merging of tool messages to preserve unique `toolCallId` for each `tool_result` block
- **Files**: `core/llm/messages.ts` - Added condition to prevent tool message merging

### 3. Token Counting for Parallel Tool Calls
- **Problem**: Token counting only considered the last tool message
- **Solution**: Added logic to count tokens for all tool messages in parallel scenarios
- **Files**: `core/llm/countTokens.ts` - Enhanced token counting for multiple tool messages

## Test Coverage
- Added comprehensive tests for parallel tool call scenarios
- Tests verify correct message structure for Claude API format
- All existing functionality preserved with backward compatibility

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08 21:18:48 -07:00
Patrick Erichsen
c49f8412c3 Revert streaming fixes and preserve parallel tool calls progress
- Reverted ID-based streaming logic back to index-based approach
- Reverted permission processing changes
- Preserved existing parallel tool calls infrastructure
- Tests show tool calls are stored but not transitioning to "generated" status
- Ready to start fresh on the parallel tool calling issue

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08 15:33:08 -07:00
Patrick Erichsen
48b950b432 only show rule gen btn if model supports tools 2025-07-02 21:51:56 -07:00
Patrick Erichsen
f6ba92be8d smaller fonts, move chips up, truncate text 2025-07-02 21:32:01 -07:00
Patrick Erichsen
b13f1aadcf feat: only show btn if last history item 2025-07-02 21:01:37 -07:00
Patrick Erichsen
44094aa163 feat: streaming input w/ history to rule dialog 2025-06-30 22:11:57 -07:00
Patrick Erichsen
a2adf2fe98 feat: generate rule button + dialog scaffolding 2025-06-30 18:11:36 -07:00
Dallin Romney
ff8a63a9e6 remove checkpoints 2025-04-30 19:02:38 -07:00
Dallin Romney
dfc57bef87 progress on apply states 2025-04-29 23:21:21 -07:00
Dallin Romney
654842a96e working edit apply state 2025-04-29 20:30:13 -07:00
Dallin Romney
bd57476f1a edit mode toggle fixes 2025-04-29 19:58:52 -07:00
Dallin Romney
e36bef8a16 edit mode state updates 2025-04-29 15:24:49 -07:00
Patrick Erichsen
e3bbd6b7cf feat: move SymbolLink 2025-04-14 10:51:25 -07:00
Patrick Erichsen
b0492ddfee feat: more moving around 2025-04-14 10:49:10 -07:00
Patrick Erichsen
58d9eb7a7e feat: consolidate StepContainer 2025-04-11 17:42:55 -07:00
Patrick Erichsen
1bf359a55f feat: remove defaultTitle 2025-04-08 17:55:11 -07:00
Patrick Erichsen
1b669bf80e fix: sign in btn + colors 2025-03-24 17:56:04 -07:00
Nate
ee139138d1 persist block settings toolbar expanded and adjust padding to match lump width 2025-03-23 00:11:49 -07:00
ferenci84
7a7b29f0bd update hideActionSpace condition to include "thinking" role 2025-03-10 13:50:55 +01:00
Dallin Romney
57ec041638 chatInteraction and editInteraction schemas 2025-02-17 16:26:16 -08:00
Dallin Romney
22dd2d1633 schemaVersion -> schema 2025-02-17 14:33:43 -08:00
Dallin Romney
5092f286a5 config yaml package 2025-02-03 09:54:39 -08:00
Dallin Romney
fd85340cc1 log dev data 2025-01-31 12:17:06 -08:00
Dallin Romney
197859f97a new dev data destionation schema 2025-01-30 11:38:56 -08:00
Nate
a2b4c3a8b8 update padding 2025-01-30 09:32:11 -08:00
Nate
3e5f0738db adjust padding 2025-01-30 09:10:11 -08:00
German Swan
f9eeeabc98 3832: ui improvements 2025-01-29 00:07:29 +02:00
Dallin Romney
5960d5d32b Data Logger 2025-01-26 15:57:55 -08:00
German Swan
d67a0a0259 3832: added elapsed time 2025-01-24 23:08:03 +02:00
German Swan
dae89dea1b 3832: DeepSeek-R1 reasoning display can be toggled 2025-01-24 22:31:26 +02:00
Nate
4a86e64056 Merge branch 'main' into dallin/toolsapalooza-openai-gemini 2025-01-11 11:42:56 -08:00
Dallin Romney
d51d46bbde open ai support and tool bug fixes 2025-01-11 08:59:32 -08:00
Test
e6533965bd test(e2e): edit flow 2025-01-10 15:29:12 -08:00
Dallin Romney
49bda15a2f guinull-chekc-continued 2025-01-03 17:36:37 +01:00
Dallin Romney
c7ed2aa62e gui strict null checks continued 2025-01-03 16:41:14 +01:00
Nate
114b7f1bf6 Merge branch 'main' into nate/fixees 2024-12-18 22:32:35 -08:00
Nate
18c74307a8 don't display "Continue generation" for empty output 2024-12-18 21:03:35 -08:00
Nate Sesti
0562e7890f
Merge pull request #3445 from continuedev/dallin/o1-loader
Thinking indicator - only for o1
2024-12-18 18:32:02 -08:00
Test
9a205ba001 gui: misc bugfixes 2024-12-18 14:33:31 -08:00
Dallin Romney
5cff822974 don't show while gathering context 2024-12-18 10:57:39 -08:00
Dallin Romney
98296ff125 thinking indicator 2024-12-18 10:36:50 -08:00
tomasz-io
4f7f143d68 Merge branch 'main' into tomasz/more-e2e 2024-12-09 18:23:22 -08:00