Commit graph

106 commits

Author SHA1 Message Date
Dallin Romney
b643a58cbf fix: response actions disappearing and causing jumping while streaming 2025-09-09 19:05:34 -07:00
uinstinct
e394a9aa95 improve: open conversation summary be default 2025-08-07 19:42:51 +05:30
Dallin Romney
dfbb1e2ba2
Merge pull request #6792 from uinstinct/tool-spacing-div
fix: spacing between divs on tool calls
2025-08-05 13:52:21 -07:00
chezsmithy
68fd28fece fix: 🎨 Prettier 2025-08-05 11:23:07 -07:00
chezsmithy
37ef32021d fix: 🏷️ Fixed typescript errors 2025-08-05 11:23:07 -07:00
uinstinct
1c4f983c93 fix: spacing between divs on tool calls 2025-07-25 11:56:18 +05:30
Dallin Romney
dde117e471 feat: warning for models not great with tools 2025-07-20 10:22:43 +02:00
Tomasz Stefaniak
251f4d3d06 fix: prettier 2025-07-18 10:42:00 -07:00
Tomasz Stefaniak
e19400bf5a feat: delete compaction 2025-07-18 09:52:46 -07:00
Tomasz Stefaniak
5b854675ea feat: compaction 2025-07-18 09:42:59 -07:00
Tomasz Stefaniak
3edb844d93 improv: compaction ui 2025-07-18 09:24:48 -07:00
Tomasz Stefaniak
f5505257ab feat: compaction 2025-07-18 09:00:51 -07:00
Dallin Romney
10421a252e merge main 2025-07-18 17:25:03 +02:00
Tomasz Stefaniak
25ebca018f
feat: compaction (#6662)
* feat: compaction

* fix: type errors

* fix: prettier

* fix: type errrors

* Update gui/src/components/StepContainer/StepContainer.tsx

Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>

* Update gui/src/components/StepContainer/ResponseActions.tsx

Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>

* Update gui/src/components/StepContainer/ConversationSummary.tsx

Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>

* fix: compaction

* fix: type errors

* fix: type errors

* fix: add passthrough

---------

Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
2025-07-17 16:22:46 -07:00
Tomasz Stefaniak
b95bd3cda2 fix: sticky headers 2025-07-17 15:31:05 -07:00
Patrick Erichsen
68550f657c chore: use icon for generate rule action 2025-07-16 18:48:29 -07:00
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