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>
This commit is contained in:
43
test_cache_busting2.js
Normal file
43
test_cache_busting2.js
Normal file
@@ -0,0 +1,43 @@
|
||||
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();
|
||||
Reference in New Issue
Block a user