Skip to content

Commit 0174900

Browse files
authored
release/v5.3.4 (#48)
* fix multi-window auth sync * update changelog
1 parent f3464f2 commit 0174900

File tree

4 files changed

+76
-1
lines changed

4 files changed

+76
-1
lines changed

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,40 @@
11
# Changelog
22

3+
## [v5.3.4] - 2026-02-03
4+
5+
### Fixed
6+
7+
- Fixed multi-window authentication synchronization
8+
- Fixed beta model access for axon-code-2-pro
9+
10+
---
11+
12+
## [v5.3.3] - 2026-02-02
13+
14+
### Fixed
15+
16+
- Fixed beta model access for axon-code-2-pro
17+
18+
---
19+
20+
## [v5.3.2] - 2026-02-02
21+
22+
### Added
23+
24+
- Beta models gating for axon-code-2-pro with backend API integration
25+
- Custom icons utility for improved UI components
26+
27+
### Changed
28+
29+
- Set temperature to 0.2 for OpenRouter provider
30+
- Enhanced file edit tool with improved functionality
31+
- Updated kilocode models configuration
32+
- Cleaned up chat text area component
33+
- Updated and optimized test files
34+
- UI improvements across chat components
35+
36+
---
37+
338
## [v5.3.1] - 2026-01-30
439

540
### Added

src/core/config/ContextProxy.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export class ContextProxy {
4040
private stateCache: GlobalState
4141
private secretCache: SecretState
4242
private _isInitialized = false
43+
private secretsChangeDisposable?: vscode.Disposable
44+
private onSecretChangeCallback?: () => void | Promise<void>
4345

4446
constructor(context: vscode.ExtensionContext) {
4547
this.originalContext = context
@@ -92,9 +94,32 @@ export class ContextProxy {
9294
// Migration: Check for old nested image generation settings and migrate them
9395
await this.migrateImageGenerationSettings()
9496

97+
// Listen for secret changes from other windows to keep cache in sync
98+
this.secretsChangeDisposable = this.originalContext.secrets.onDidChange(async () => {
99+
await this.refreshSecrets()
100+
if (this.onSecretChangeCallback) {
101+
await this.onSecretChangeCallback()
102+
}
103+
})
104+
95105
this._isInitialized = true
96106
}
97107

108+
/**
109+
* Register a callback to be invoked when secrets change (e.g., from another window).
110+
* This enables cross-window synchronization of auth tokens and other secrets.
111+
*/
112+
public setOnSecretsChanged(callback: () => void | Promise<void>) {
113+
this.onSecretChangeCallback = callback
114+
}
115+
116+
/**
117+
* Dispose of resources, including the secrets change listener.
118+
*/
119+
public dispose() {
120+
this.secretsChangeDisposable?.dispose()
121+
}
122+
98123
/**
99124
* Migrates old nested openRouterImageGenerationSettings to the new flattened structure
100125
*/

src/core/webview/ClineProvider.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,20 @@ export class ClineProvider
300300
} else {
301301
this.log("CloudService not ready, deferring cloud profile sync")
302302
}
303+
304+
// Multi-window synchronization: refresh secrets when window gains focus
305+
const windowStateDisposable = vscode.window.onDidChangeWindowState(async (e) => {
306+
if (e.focused && this.contextProxy.isInitialized) {
307+
await this.contextProxy.refreshSecrets()
308+
await this.postStateToWebview()
309+
}
310+
})
311+
this.disposables.push(windowStateDisposable)
312+
313+
// Listen for secret changes from other windows
314+
this.contextProxy.setOnSecretsChanged(async () => {
315+
await this.postStateToWebview()
316+
})
303317
}
304318

305319
/**
@@ -628,6 +642,7 @@ export class ClineProvider
628642
this.mcpHub = undefined
629643
this.marketplaceManager?.cleanup()
630644
this.customModesManager?.dispose()
645+
this.contextProxy?.dispose()
631646
this.log("Disposed all disposables")
632647
ClineProvider.activeInstances.delete(this)
633648

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "%extension.displayName%",
44
"description": "%extension.description%",
55
"publisher": "matterai",
6-
"version": "5.3.3",
6+
"version": "5.3.4",
77
"icon": "assets/icons/matterai-ic.png",
88
"galleryBanner": {
99
"color": "#FFFFFF",

0 commit comments

Comments
 (0)