personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

style: format chat refactor files

+11 -9
+6 -2
apps/chat/tests/test_markdown_bootstrap_browser.py
··· 121 121 browser = _launch_chromium(playwright) 122 122 try: 123 123 page = browser.new_page() 124 - page.goto(f"{base_url}/app/chat/{day}", wait_until="domcontentloaded") 124 + page.goto( 125 + f"{base_url}/app/chat/{day}", wait_until="domcontentloaded" 126 + ) 125 127 126 128 assert ( 127 - page.locator(".chat-talent-card-detail--markdown strong").count() 129 + page.locator( 130 + ".chat-talent-card-detail--markdown strong" 131 + ).count() 128 132 > 0 129 133 ) 130 134 assert page.locator('[data-markdown="1"]').count() == 0
+2 -6
talent/chat_context.py
··· 233 233 return "" 234 234 kind_label, result_field_label, result_value = details 235 235 field_title = result_field_label.capitalize() 236 - contract = STOP_AND_REPORT_CONTRACT.format( 237 - result_field_label=result_field_label 238 - ) 236 + contract = STOP_AND_REPORT_CONTRACT.format(result_field_label=result_field_label) 239 237 return ( 240 238 "[internal follow-up: talent " 241 239 f"{payload.get('name', 'exec')} {kind_label}. This is a {contract} " ··· 314 312 _, result_field_label, result_value = details 315 313 if payload.get("name"): 316 314 lines.append(f"- Talent: {payload['name']}") 317 - instruction = STOP_AND_REPORT_CONTRACT.format( 318 - result_field_label=result_field_label 319 - ) 315 + instruction = STOP_AND_REPORT_CONTRACT.format(result_field_label=result_field_label) 320 316 lines.append(f"- Instruction: This is a {instruction}") 321 317 if result_value: 322 318 lines.append(f"- {result_field_label.capitalize()}: {result_value}")
+3 -1
tests/test_chat_context.py
··· 430 430 assert "using the result below. Result:" in finished_message 431 431 assert "using the reason below. Reason:" in errored_message 432 432 assert "Do not retry this task or request another talent for it." in errored_message 433 - assert "Do not retry this task or request another talent for it." in finished_message 433 + assert ( 434 + "Do not retry this task or request another talent for it." in finished_message 435 + ) 434 436 435 437 finished_instruction = ( 436 438 "Instruction: This is a stop-and-report turn, not a dispatch turn. "