docs: devlog #012 + known-issues 3건 + VSIX v0.4.3 빌드 아티팩트
This commit is contained in:
@@ -135,7 +135,7 @@ let activeTrajectoryId = '';
|
||||
const recentDiscordSentTexts = new Map();
|
||||
function writeChatSnapshot(text) {
|
||||
try {
|
||||
// WS route (preferred)
|
||||
// WS route (preferred) — skip file write to prevent duplicate Discord delivery
|
||||
if (wsBridge && wsBridge.isConnected()) {
|
||||
wsBridge.sendChat({
|
||||
content: text,
|
||||
@@ -143,8 +143,12 @@ function writeChatSnapshot(text) {
|
||||
project_name: projectName,
|
||||
});
|
||||
logToFile(`[SNAPSHOT-WS] sent (${text.length} chars)`);
|
||||
if (activeSessionId) {
|
||||
(0, step_probe_1.writeRegistration)(activeSessionId);
|
||||
}
|
||||
return;
|
||||
}
|
||||
// File route (fallback / Phase 0 dual-write)
|
||||
// File route (fallback — only when WS is NOT connected)
|
||||
const snapshotDir = path.join(bridgePath, 'chat_snapshots');
|
||||
if (!fs.existsSync(snapshotDir)) {
|
||||
fs.mkdirSync(snapshotDir, { recursive: true });
|
||||
@@ -172,7 +176,7 @@ function writeChatSnapshot(text) {
|
||||
}
|
||||
function writeChatSnapshotWithFiles(text, files) {
|
||||
try {
|
||||
// WS route (preferred)
|
||||
// WS route (preferred) — skip file write to prevent duplicate Discord delivery
|
||||
if (wsBridge && wsBridge.isConnected()) {
|
||||
wsBridge.sendChat({
|
||||
content: text,
|
||||
@@ -181,8 +185,12 @@ function writeChatSnapshotWithFiles(text, files) {
|
||||
project_name: projectName,
|
||||
});
|
||||
logToFile(`[SNAPSHOT-WS] sent with ${files.length} files (${text.length} chars)`);
|
||||
if (activeSessionId) {
|
||||
(0, step_probe_1.writeRegistration)(activeSessionId);
|
||||
}
|
||||
return;
|
||||
}
|
||||
// File route (fallback)
|
||||
// File route (fallback — only when WS is NOT connected)
|
||||
const snapshotDir = path.join(bridgePath, 'chat_snapshots');
|
||||
if (!fs.existsSync(snapshotDir)) {
|
||||
fs.mkdirSync(snapshotDir, { recursive: true });
|
||||
@@ -1141,6 +1149,8 @@ async function activate(context) {
|
||||
sawRunningAfterPending,
|
||||
clickTrigger,
|
||||
logToFile,
|
||||
workspaceUri,
|
||||
diffReviewMetadata: new Map(),
|
||||
recentDiscordSentTexts,
|
||||
writeChatSnapshot,
|
||||
writeChatSnapshotWithFiles,
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user