@ynhcj/xiaoyi-channel 0.0.84-next → 0.0.85-next
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.
|
@@ -112,6 +112,9 @@ export function getCurrentSessionContext(sessionKey) {
|
|
|
112
112
|
if (alsContext) {
|
|
113
113
|
return enrichWithLatestTaskInfo(alsContext);
|
|
114
114
|
}
|
|
115
|
+
// ALS not available — logging to understand when/why
|
|
116
|
+
const stack = new Error().stack?.split("\n").slice(2, 5).map(s => s.trim()).join(" | ");
|
|
117
|
+
logger.log(`[SESSION-MGR] ⚠️ ALS miss, falling back to Map (size=${activeSessions.size}), callers: ${stack}`);
|
|
115
118
|
// 2. Fallback: look up from global activeSessions Map
|
|
116
119
|
if (activeSessions.size === 0) {
|
|
117
120
|
return null;
|