Skip to content

Commit 74cf0e0

Browse files
coordtclaude
andcommitted
Publicize Dispatcher.executor (remove private-attribute cross-module access)
Task 5 from pr-21-fixes.md: - Rename Dispatcher._executor → Dispatcher.executor (public attribute) - __main__.py updated to use dispatcher.executor instead of dispatcher._executor Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1a9bf71 commit 74cf0e0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

foreman/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def _run_start(args: Any) -> None:
164164

165165
# Expose shared state for the lifespan background loops.
166166
app.state.task_queue = task_queue
167-
app.state.executor = dispatcher._executor
167+
app.state.executor = dispatcher.executor
168168
app.state.memory = memory
169169
app.state.config = config
170170

foreman/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(self, config: ForemanConfig, memory: MemoryStore, task_queue: TaskQ
5353
self._config = config
5454
self._memory = memory
5555
self._task_queue = task_queue
56-
self._executor = GitHubExecutor(token=str(config.identity.github_token), memory=memory)
56+
self.executor = GitHubExecutor(token=str(config.identity.github_token), memory=memory)
5757

5858
async def dispatch(self, event: dict[str, Any], route_target: RouteTarget) -> None:
5959
"""Enqueue *event* for the agent described by *route_target* and nudge it.

0 commit comments

Comments
 (0)