Skip to content

Commit fba7fc5

Browse files
committed
fix the import parameter in controller and the programmer mode UI
1 parent 08c7828 commit fba7fc5

File tree

4 files changed

+11
-20
lines changed

4 files changed

+11
-20
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@
525525
"@aws-sdk/s3-request-presigner": "<3.731.0",
526526
"@aws-sdk/smithy-client": "<3.731.0",
527527
"@aws-sdk/util-arn-parser": "<3.731.0",
528-
"@aws/mynah-ui": "^4.30.1",
528+
"@aws/mynah-ui": "^4.31.0-beta.1",
529529
"@gerhobbelt/gitignore-parser": "^0.2.0-9",
530530
"@iarna/toml": "^2.2.5",
531531
"@smithy/fetch-http-handler": "^5.0.1",

packages/core/src/amazonq/webview/ui/tabs/generator.ts

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -91,20 +91,11 @@ export class TabDataGenerator {
9191
tabType === 'cwc'
9292
? [
9393
{
94-
type: 'toggle',
95-
id: 'prompt-type',
96-
value: 'pair-programming-on',
97-
tooltip: 'Pair programmer on',
98-
options: [
99-
{
100-
value: 'pair-programming-on',
101-
icon: 'code-block', // TODO: correct icons
102-
},
103-
{
104-
value: 'pair-programming-off',
105-
icon: 'chat', // TODO: correct icons
106-
},
107-
],
94+
type: 'switch',
95+
id: 'pair-programmer-mode',
96+
tooltip: 'Enable or disable pair programmer mode',
97+
value: 'true',
98+
icon: 'code-block',
10899
},
109100
]
110101
: [],

packages/core/src/codewhispererChat/controllers/chat/controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ export class ChatController {
787787
chatStream,
788788
ConversationTracker.getInstance().getTokenForTrigger(triggerID)
789789
)
790-
ToolUtils.validateOutput(output)
790+
ToolUtils.validateOutput(output, tool.type)
791791

792792
let status: ToolResultStatus = ToolResultStatus.SUCCESS
793793
if (output.output.success === false) {

0 commit comments

Comments
 (0)