Fix thinking

This commit is contained in:
andrepimenta
2025-06-24 17:57:42 +01:00
parent 4c57af4141
commit 581ad59ea2
3 changed files with 23 additions and 13 deletions

14
package-lock.json generated
View File

@@ -1,17 +1,17 @@
{ {
"name": "claude-code-chat", "name": "claude-code-chat",
"version": "0.0.8", "version": "0.1.3",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "claude-code-chat", "name": "claude-code-chat",
"version": "0.0.8", "version": "0.1.3",
"license": "SEE LICENSE IN LICENSE", "license": "SEE LICENSE IN LICENSE",
"devDependencies": { "devDependencies": {
"@types/mocha": "^10.0.10", "@types/mocha": "^10.0.10",
"@types/node": "20.x", "@types/node": "20.x",
"@types/vscode": "^1.95.0", "@types/vscode": "^1.94.0",
"@typescript-eslint/eslint-plugin": "^8.31.1", "@typescript-eslint/eslint-plugin": "^8.31.1",
"@typescript-eslint/parser": "^8.31.1", "@typescript-eslint/parser": "^8.31.1",
"@vscode/test-cli": "^0.0.10", "@vscode/test-cli": "^0.0.10",
@@ -21,7 +21,7 @@
"typescript": "^5.8.3" "typescript": "^5.8.3"
}, },
"engines": { "engines": {
"vscode": "^1.95.0" "vscode": "^1.94.0"
} }
}, },
"node_modules/@azu/format-text": { "node_modules/@azu/format-text": {
@@ -978,9 +978,9 @@
"dev": true "dev": true
}, },
"node_modules/@types/vscode": { "node_modules/@types/vscode": {
"version": "1.100.0", "version": "1.101.0",
"resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.100.0.tgz", "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.101.0.tgz",
"integrity": "sha512-4uNyvzHoraXEeCamR3+fzcBlh7Afs4Ifjs4epINyUX/jvdk0uzLnwiDY35UKDKnkCHP5Nu3dljl2H8lR6s+rQw==", "integrity": "sha512-ZWf0IWa+NGegdW3iU42AcDTFHWW7fApLdkdnBqwYEtHVIBGbTu0ZNQKP/kX3Ds/uMJXIMQNAojHR4vexCEEz5Q==",
"dev": true, "dev": true,
"license": "MIT" "license": "MIT"
}, },

View File

@@ -2,7 +2,7 @@
"name": "claude-code-chat", "name": "claude-code-chat",
"displayName": "Claude Code Chat", "displayName": "Claude Code Chat",
"description": "Beautiful Claude Code Chat Interface for VS Code", "description": "Beautiful Claude Code Chat Interface for VS Code",
"version": "0.1.2", "version": "0.1.3",
"publisher": "AndrePimenta", "publisher": "AndrePimenta",
"author": "Andre Pimenta", "author": "Andre Pimenta",
"repository": { "repository": {
@@ -11,7 +11,7 @@
}, },
"license": "SEE LICENSE IN LICENSE", "license": "SEE LICENSE IN LICENSE",
"engines": { "engines": {
"vscode": "^1.95.0" "vscode": "^1.94.0"
}, },
"categories": [ "categories": [
"Other", "Other",
@@ -171,7 +171,12 @@
}, },
"claudeCodeChat.thinking.intensity": { "claudeCodeChat.thinking.intensity": {
"type": "string", "type": "string",
"enum": ["think", "think-hard", "think-harder", "ultrathink"], "enum": [
"think",
"think-hard",
"think-harder",
"ultrathink"
],
"default": "think", "default": "think",
"description": "Thinking mode intensity level. Higher levels provide more detailed reasoning but consume more tokens." "description": "Thinking mode intensity level. Higher levels provide more detailed reasoning but consume more tokens."
} }
@@ -189,7 +194,7 @@
"devDependencies": { "devDependencies": {
"@types/mocha": "^10.0.10", "@types/mocha": "^10.0.10",
"@types/node": "20.x", "@types/node": "20.x",
"@types/vscode": "^1.95.0", "@types/vscode": "^1.94.0",
"@typescript-eslint/eslint-plugin": "^8.31.1", "@typescript-eslint/eslint-plugin": "^8.31.1",
"@typescript-eslint/parser": "^8.31.1", "@typescript-eslint/parser": "^8.31.1",
"@vscode/test-cli": "^0.0.10", "@vscode/test-cli": "^0.0.10",

View File

@@ -1392,8 +1392,7 @@ const html = `<!DOCTYPE html>
} }
} }
// Update the toggle name // Don't update toggle name until user confirms
updateThinkingModeToggleName(value);
} }
function setThinkingIntensityValue(value) { function setThinkingIntensityValue(value) {
@@ -1405,6 +1404,12 @@ const html = `<!DOCTYPE html>
} }
function confirmThinkingIntensity() { function confirmThinkingIntensity() {
// Get the current slider value
const currentValue = document.getElementById('thinkingIntensitySlider').value;
// Update the toggle name with confirmed selection
updateThinkingModeToggleName(currentValue);
// Save the current intensity setting // Save the current intensity setting
saveThinkingIntensity(); saveThinkingIntensity();