-
Notifications
You must be signed in to change notification settings - Fork 303
ui(patches): apply and replace buttons #514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
f083767
ui(patches): remove apply and replace buttons and make the code revea…
MarcMcIntosh 59763a5
ui(new patches): remove new event for sending a patchto the ide.
MarcMcIntosh e742f85
wip(ide tool edit): send enough info to the ide to know which tool ed…
MarcMcIntosh 93cab57
feat(chat): append tool call accepted message to chat when the user a…
MarcMcIntosh f4f8cdc
wip(manual patch): remove the tool confiormation when manually applyi…
MarcMcIntosh b775f17
fix: inconstancy with auto sending when accpetting or reject a patch …
MarcMcIntosh f983fb4
fix(updating tool messages): handle multi model.
MarcMcIntosh d4b8b31
remove unused import.
MarcMcIntosh 2c298f7
fix(apply): auto calls when user manually presses apply then accept/r…
MarcMcIntosh e838ee9
fix(apply confirmation): add the correct message if the user accepts …
MarcMcIntosh 342413e
fix(acceot / reject): prevent sending message no rejection.
MarcMcIntosh 429d2b7
fix(upsertToolCall): import the action in the thread reducer.
MarcMcIntosh 7ba3a6b
fix: don't continue streaming if the user rejects the tool use.
MarcMcIntosh d4cee1b
ui(confirmation): remove loading dots.
MarcMcIntosh 4a3120b
ui(markdown): remove custom stye for update textdoc
MarcMcIntosh 20d1aef
ci: update version bump logic for alpha branch & npm publish in CI (#…
alashchev17 5cdc0d7
refactor: use git2 status show instead of redundant enum, allow to ge…
humbertoyusta e6f4a04
uncommited changes warning message separating unstaged and staged
humbertoyusta c655fc7
remove unused method
humbertoyusta 26d345e
fix: uncommited changes warning, failed integrations links and more s…
humbertoyusta 923fbbb
fix: add usage also for delta collector in streaming in python sdk
humbertoyusta 6441cfb
fix: count cache tokens for claude
humbertoyusta fb04e30
fix: increase stream limit
humbertoyusta 3fbf5cd
fix: secrets yaml was not used
humbertoyusta 94622b7
ci(npm publish): better version bump message (#523)
alashchev17 a5cec42
fix: showing usable models if user's plan is not FREE (#522)
alashchev17 369b014
feat: version bump [email protected] (#525)
alashchev17 9ac63b2
feat: version bump [email protected] (#526)
alashchev17 e626d51
fix(chat): remove unused import.
MarcMcIntosh 555a2b5
Merge 'main' into 'dev' (#529)
alashchev17 12702fd
Merge branch 'dev-2' into ui-patch-tool-changes
MarcMcIntosh 9da93fe
copy .github/workflows/agent_gui_npm_publish.yml from main
MarcMcIntosh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,9 +50,11 @@ import { | |
| setChatMode, | ||
| setIsWaitingForResponse, | ||
| setLastUserMessageId, | ||
| upsertToolCall, | ||
| } from "../features/Chat"; | ||
|
|
||
| import { v4 as uuidv4 } from "uuid"; | ||
| import { upsertToolCallIntoHistory } from "../features/History/historySlice"; | ||
|
|
||
| type SubmitHandlerParams = | ||
| | { | ||
|
|
@@ -319,16 +321,27 @@ export const useSendChatRequest = () => { | |
| dispatch(setIsWaitingForResponse(false)); | ||
| }, [abort, dispatch]); | ||
|
|
||
| const rejectToolUsage = useCallback(() => { | ||
| abort(); | ||
| dispatch( | ||
| clearPauseReasonsAndHandleToolsStatus({ | ||
| wasInteracted: true, | ||
| confirmationStatus: false, | ||
| }), | ||
| ); | ||
| dispatch(setIsWaitingForResponse(false)); | ||
| }, [abort, dispatch]); | ||
| const rejectToolUsage = useCallback( | ||
| (toolCallIds: string[]) => { | ||
| abort(); | ||
|
|
||
| toolCallIds.forEach((toolCallId) => { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove this |
||
| dispatch( | ||
| upsertToolCallIntoHistory({ toolCallId, chatId, accepted: false }), | ||
| ); | ||
| dispatch(upsertToolCall({ toolCallId, chatId, accepted: false })); | ||
| }); | ||
|
|
||
| dispatch( | ||
| clearPauseReasonsAndHandleToolsStatus({ | ||
| wasInteracted: true, | ||
| confirmationStatus: false, | ||
| }), | ||
| ); | ||
| dispatch(setIsWaitingForResponse(false)); | ||
| }, | ||
| [abort, chatId, dispatch], | ||
| ); | ||
|
|
||
| const retryFromIndex = useCallback( | ||
| (index: number, question: UserMessage["content"]) => { | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stop on reject, continue on accept