- 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>
44 lines
1.0 KiB
JavaScript
44 lines
1.0 KiB
JavaScript
const http = require('http');
|
|
|
|
const options = {
|
|
hostname: 'localhost',
|
|
port: 3010,
|
|
path: '/claude/',
|
|
method: 'GET'
|
|
};
|
|
|
|
const req = http.request(options, (res) => {
|
|
console.log('Status:', res.statusCode);
|
|
console.log('Content-Type:', res.headers['content-type']);
|
|
console.log('Cache-Control:', res.headers['cache-control']);
|
|
|
|
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.forEach(script => {
|
|
console.log(' ', script);
|
|
if (script.includes('?v=')) {
|
|
console.log(' ✓ Has cache-busting parameter!');
|
|
} else {
|
|
console.log(' ✗ Missing cache-busting parameter');
|
|
}
|
|
});
|
|
} else {
|
|
console.log('\nNo script tags found in HTML');
|
|
}
|
|
});
|
|
});
|
|
|
|
req.on('error', (e) => {
|
|
console.error('Error:', e.message);
|
|
});
|
|
|
|
req.end();
|