Skip to content

refactor: move thread runtime prologue#866

Merged
shuxueshuxue merged 1 commit intodevfrom
brother/thread-runtime-run-prologue-owner
Apr 19, 2026
Merged

refactor: move thread runtime prologue#866
shuxueshuxue merged 1 commit intodevfrom
brother/thread-runtime-run-prologue-owner

Conversation

@shuxueshuxue
Copy link
Copy Markdown
Collaborator

Summary

  • move run-source tracking and the user_message/run_start/notice prologue block into backend/thread_runtime/run/prologue.py
  • retarget _run_agent_to_buffer to the new prologue owner without changing terminal followthrough/input behavior
  • add owner smoke plus direct prologue coverage for owner, steer, and system-notice paths

Verification

  • uv run python -m pytest tests/Unit/backend/web/services/test_thread_runtime_owner.py tests/Unit/backend/thread_runtime/run/test_prologue.py tests/Integration/test_query_loop_backend_contracts.py -k "test_run_agent_to_buffer_emits_notice_for_system_agent_notifications or test_run_agent_to_buffer_surfaces_notice_then_assistant_followthrough or test_run_agent_to_buffer_turns_silent_terminal_reentry_into_visible_followthrough" -q
  • uv run ruff check backend/thread_runtime/run/prologue.py backend/web/services/streaming_service.py tests/Unit/backend/web/services/test_thread_runtime_owner.py tests/Unit/backend/thread_runtime/run/test_prologue.py
  • uv run ruff format --check backend/thread_runtime/run/prologue.py backend/web/services/streaming_service.py tests/Unit/backend/web/services/test_thread_runtime_owner.py tests/Unit/backend/thread_runtime/run/test_prologue.py
  • git diff --check

@shuxueshuxue shuxueshuxue merged commit ca44ad0 into dev Apr 19, 2026
7 checks passed
@shuxueshuxue shuxueshuxue deleted the brother/thread-runtime-run-prologue-owner branch April 19, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant