- 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>
20 lines
446 B
Python
20 lines
446 B
Python
import greenlet
|
|
from . import TestCase
|
|
|
|
|
|
class Test(TestCase):
|
|
|
|
def test_stack_saved(self):
|
|
main = greenlet.getcurrent()
|
|
self.assertEqual(main._stack_saved, 0)
|
|
|
|
def func():
|
|
main.switch(main._stack_saved)
|
|
|
|
g = greenlet.greenlet(func)
|
|
x = g.switch()
|
|
self.assertGreater(x, 0)
|
|
self.assertGreater(g._stack_saved, 0)
|
|
g.switch()
|
|
self.assertEqual(g._stack_saved, 0)
|