@volter/supercode-frontend-vscode 0.1.52 → 0.1.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extension.js +5 -2
- package/package.json +1 -1
package/dist/extension.js
CHANGED
|
@@ -979,7 +979,9 @@ export async function activate(context) {
|
|
|
979
979
|
// A new draft's harness, not the previous runtime, owns its offered modes.
|
|
980
980
|
const harness = resource ? controls?.state.sessions.find(session => session.id === id)?.selection.harness : draftSelection()?.harness;
|
|
981
981
|
const canApprove = resource ? (active ? canAnswer(active) : ['claude-code', 'codex'].includes(harness ?? ''))
|
|
982
|
-
: (harness ? ['claude-code', 'codex'].includes(harness)
|
|
982
|
+
: (harness ? ['claude-code', 'codex'].includes(harness)
|
|
983
|
+
// the default harness decides; only with none known does the new-chat default stand in for it
|
|
984
|
+
: controls?.state.selection.harness ? ['claude-code', 'codex'].includes(controls.state.selection.harness) : newChatDefault() === 'autoApprove');
|
|
983
985
|
// An unbound input is a new chat, not the active conversation left behind it.
|
|
984
986
|
const selectedPermission = resource ? currentOptions(resource).permissions : permission ?? newChatDefault();
|
|
985
987
|
const permissionItems = [{ id: 'ask', name: canApprove ? 'Ask for approval' : 'Harness permissions', description: canApprove ? 'Show each approval requested by the harness.' : 'Approval controls are unavailable for this harness.' },
|
|
@@ -1067,8 +1069,9 @@ export async function activate(context) {
|
|
|
1067
1069
|
await revealManaged();
|
|
1068
1070
|
}));
|
|
1069
1071
|
context.subscriptions.push(vscode.commands.registerCommand('supercode.frontend.configure', async (supplied) => {
|
|
1072
|
+
// with a new chat's draft open, a permission chosen is the draft's, never the conversation behind it
|
|
1070
1073
|
if (supplied?.permissions) {
|
|
1071
|
-
const id = controls?.state.activeSession;
|
|
1074
|
+
const id = activeDraft() ? undefined : controls?.state.activeSession;
|
|
1072
1075
|
if (id)
|
|
1073
1076
|
choosePermission(id, turnPermission(supplied.permissions));
|
|
1074
1077
|
else
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/supercode-frontend-vscode",
|
|
3
3
|
"displayName": "Volter Harness",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.53",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "VS Code chat-view frontend for an existing Volter Harness SDK runtime",
|
|
7
7
|
"publisher": "volter-ai-dev",
|