Isolate plan and task runtime per session
This commit is contained in:
@@ -183,7 +183,11 @@ class PlanRuntimeTests(unittest.TestCase):
|
||||
),
|
||||
)
|
||||
result = agent.run('Store the current plan')
|
||||
self.assertTrue((workspace / '.port_sessions' / 'plan_runtime.json').exists())
|
||||
self.assertIsNotNone(result.scratchpad_directory)
|
||||
self.assertTrue(
|
||||
(Path(result.scratchpad_directory) / 'plan_runtime.json').exists()
|
||||
)
|
||||
self.assertFalse((workspace / '.port_sessions' / 'plan_runtime.json').exists())
|
||||
|
||||
self.assertEqual(result.final_output, 'The plan was stored successfully.')
|
||||
self.assertEqual(result.tool_calls, 1)
|
||||
|
||||
Reference in New Issue
Block a user