Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 20 additions & 17 deletions packages/core/src/amazonq/webview/ui/tabs/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,26 @@ export class TabDataGenerator {
},
]
: [],
promptInputOptions: [
{
type: 'toggle',
id: 'prompt-type',
value: 'ask',
options: [
{
value: 'pair-programming-on',
icon: 'code-block', // TODO: correct icons
},
{
value: 'pair-programming-off',
icon: 'chat', // TODO: correct icons
},
],
},
],
promptInputOptions:
tabType === 'cwc'
? [
{
type: 'toggle',
id: 'prompt-type',
value: 'ask',
options: [
{
value: 'pair-programming-on',
icon: 'code-block', // TODO: correct icons
},
{
value: 'pair-programming-off',
icon: 'chat', // TODO: correct icons
},
],
},
]
: [],
}
return tabData
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,7 @@ export class Messenger {
} else {
// TODO: Handle the error
}
} else if (cwChatEvent.toolUseEvent?.stop === undefined && toolUseInput !== '') {
// This is for the case when writing tool is executed. The toolUseEvent is non stop but in toolUseInput is not empty. In this case we need show user the current spinner UI.
this.sendInitalStream(tabID, triggerID, undefined)
// TODO: Add a spinner component for fsWrite, previous implementation is causing lag in mynah UX.
}

if (
Expand Down
Loading