Files
SuperCharged-Claude-Code-Up…/test_cache_busting.js
uroma 55aafbae9a Fix project isolation: Make loadChatHistory respect active project sessions
- Modified loadChatHistory() to check for active project before fetching all sessions
- When active project exists, use project.sessions instead of fetching from API
- Added detailed console logging to debug session filtering
- This prevents ALL sessions from appearing in every project's sidebar

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 14:43:05 +00:00

44 lines
1.0 KiB
JavaScript

const http = require('http');
const options = {
hostname: 'localhost',
port: 3010,
path: '/claude/ide',
method: 'GET',
headers: {
'Cookie': 'connect.sid=s' // Add dummy session to test
}
};
const req = http.request(options, (res) => {
console.log('Status:', res.statusCode);
console.log('Headers:', JSON.stringify(res.headers, null, 2));
let data = '';
res.on('data', (chunk) => {
data += chunk;
});
res.on('end', () => {
// Check if any script tags have cache-busting parameters
const scripts = data.match(/<script\s+src="[^"]*\.js[^"]*"/g);
if (scripts) {
console.log('\nFound script tags:');
scripts.slice(0, 5).forEach(script => {
console.log(' ', script);
if (script.includes('?v=')) {
console.log(' ✓ Has cache-busting parameter!');
} else {
console.log(' ✗ Missing cache-busting parameter');
}
});
}
});
});
req.on('error', (e) => {
console.error('Error:', e.message);
});
req.end();