Skip to content

Show working directory in Running Agent CLI Processes table#331

Merged
tbrandenburg merged 1 commit intomainfrom
codex/add-working-directory-to-agent-cli-processes
Mar 29, 2026
Merged

Show working directory in Running Agent CLI Processes table#331
tbrandenburg merged 1 commit intomainfrom
codex/add-working-directory-to-agent-cli-processes

Conversation

@tbrandenburg
Copy link
Copy Markdown
Owner

Motivation

  • Make the Running Agent CLI Processes view more informative by surfacing the working directory for each process so operators can see where each agent CLI was started.

Description

  • Extend backend process listing in packages/pybackend/agent_service.py to attempt to resolve /proc/<pid>/cwd and include workingDirectory (or null when unreadable) in each process entry.
  • Add workingDirectory?: string | null to the AgentProcessSummary type in packages/frontend/src/hooks/useApi.ts.
  • Add a "Working Directory" column to the Running Agent CLI Processes table in packages/frontend/src/pages/TasksPage.tsx and render - when the value is missing.
  • Update packages/frontend/src/pages/TasksPage.test.tsx to include and assert the rendered working directory for the sample process.

Testing

  • Ran the frontend unit test for the page with npm --workspace packages/frontend run test -- src/pages/TasksPage.test.tsx, and the Vitest suite for that file passed (all tests passed).
  • Ran backend unit tests with uv run --project packages/pybackend python -m pytest packages/pybackend/tests/unit/test_api.py -q, and the test run completed successfully (103 tests passed).

Codex Task

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
made Ready Ready Preview, Comment Mar 29, 2026 6:02pm

@tbrandenburg tbrandenburg merged commit bd00914 into main Mar 29, 2026
7 of 8 checks passed
@tbrandenburg tbrandenburg deleted the codex/add-working-directory-to-agent-cli-processes branch March 29, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant