chore: v2.2.73 — ASTRA-DEBUG 로그 레벨 + webview CSP font-src 보강

- ASTRA-DEBUG 정상 흐름 로그를 console.error → logInfo/console.log 로 강등
  (chatHandlers, extension, slashRouter): DevTools에 ERR로 찍히던 오탐 제거
- sidebar webview에 명시적 CSP meta 추가 + font-src에 data: 허용
  (sidebar.html, sidebarProvider._getHtml): VS Code outer iframe이 codicon.ttf를
  data:font/ttf 로 inject하면서 기본 CSP에 막혀 매 prompt 마다 violation
  경고가 찍히던 문제 해소
- 누적된 LM Studio / agent / 컨텍스트 매니저 / 테스트 갱신 동반

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
g1nation
2026-05-23 15:52:19 +09:00
parent 36db170844
commit 0712014fcb
43 changed files with 2417 additions and 977 deletions
+14 -2
View File
@@ -55,7 +55,7 @@ export async function activate(context: vscode.ExtensionContext) {
// 과 별개 채널 — popup도 OutputChannel도 못 보는 경우의 마지막 안전망).
const ext = vscode.extensions.getExtension('g1nation.astra');
const version = ext?.packageJSON?.version || '(unknown)';
console.error(`[ASTRA-DEBUG] activate v${version} pid=${process.pid}`);
console.log(`[ASTRA-DEBUG] activate v${version} pid=${process.pid}`);
void vscode.window.showInformationMessage(`📡 Astra v${version} activated (PID=${process.pid})`);
logInfo(`Astra activating... version=${version} pid=${process.pid}`);
@@ -88,10 +88,22 @@ export async function activate(context: vscode.ExtensionContext) {
client: lmStudioClient,
activity: activityTracker,
getConfig: () => {
// Read from getConfig() so we share the same setting parsers (incl. gpuOffloadRatio coercion)
// with the rest of the codebase instead of duplicating the logic here.
const ag = getConfig();
const cfg = vscode.workspace.getConfiguration('g1nation');
return {
idleTimeoutMs: cfg.get<number>('lmStudio.idleTimeoutMs', 300000),
autoLoadOnSelect: cfg.get<boolean>('lmStudio.autoLoadOnSelect', true),
loadConfig: {
flashAttention: ag.lmStudioLoad.flashAttention,
gpuOffloadRatio: ag.lmStudioLoad.gpuOffloadRatio,
offloadKVCacheToGpu: ag.lmStudioLoad.offloadKVCacheToGpu,
keepModelInMemory: ag.lmStudioLoad.keepModelInMemory,
useFp16ForKVCache: ag.lmStudioLoad.useFp16ForKVCache,
evalBatchSize: ag.lmStudioLoad.evalBatchSize,
},
draftModel: ag.lmStudioDraftModel || undefined,
};
},
notifyError: (msg) => provider?.postLmStudioError(msg),
@@ -157,7 +169,7 @@ export async function activate(context: vscode.ExtensionContext) {
lifecycle,
activity: activityTracker,
loadedModels: () => lmStudioClient.listLoadedCached(),
downloadedModels: () => lmStudioClient.listDownloaded(),
downloadedModels: () => lmStudioClient.listDownloadedCached(),
});
// One-time repair: rewrite any chronicle projects that were saved with the
// workspace parent as their `projectRoot` (a side-effect of the old