Skip to content

[3611] Sync root launcher defaults and justfile with codex TUI path#3612

Merged
njfio merged 5 commits intomasterfrom
3611-root-dev-launcher-sync
Mar 20, 2026
Merged

[3611] Sync root launcher defaults and justfile with codex TUI path#3612
njfio merged 5 commits intomasterfrom
3611-root-dev-launcher-sync

Conversation

@njfio
Copy link
Owner

@njfio njfio commented Mar 20, 2026

Closes #3611

Issue: #3611
Spec: specs/3611-root-dev-launcher-sync.md

What changed:

  • updated root tau-unified.sh defaults to the current Codex-backed model and launcher timeout/retry policy
  • updated root tau-tui agent defaults/help text to emit gpt-5.3-codex in dry-run mode
  • added a root justfile for stack up/down/restart/rebuild/tui/fresh-session flows
  • added root launcher contract checks for the shell script and justfile

Test evidence:

  • cargo test -p tau-tui
  • bash scripts/run/test-tau-unified.sh
  • bash scripts/dev/test-root-just-launcher.sh
  • cargo run -p tau-tui -- agent --dry-run --no-color
  • just stack-up-fast / ./scripts/run/tau-unified.sh status / just stack-down

Copilot AI review requested due to automatic review settings March 20, 2026 14:16
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

njfio has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@njfio njfio merged commit 93a10bb into master Mar 20, 2026
7 checks passed
@njfio njfio deleted the 3611-root-dev-launcher-sync branch March 20, 2026 14:18
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 93c51cb8f3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +21 to +22
REQUEST_TIMEOUT_MS_DEFAULT="${TAU_UNIFIED_REQUEST_TIMEOUT_MS:-180000}"
AGENT_REQUEST_MAX_RETRIES_DEFAULT="${TAU_UNIFIED_AGENT_REQUEST_MAX_RETRIES:-0}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve legacy TUI env overrides for timeout/retries

Renaming the defaults to TAU_UNIFIED_REQUEST_TIMEOUT_MS and TAU_UNIFIED_AGENT_REQUEST_MAX_RETRIES drops support for the previously supported TAU_UNIFIED_TUI_REQUEST_TIMEOUT_MS / TAU_UNIFIED_TUI_AGENT_REQUEST_MAX_RETRIES overrides, so existing shells/CI jobs that export the old variables are silently ignored and now run with 180000/0 instead of their configured values. This is a behavioral regression in the launcher interface and can unexpectedly change runtime latency/retry behavior for users who relied on the old env knobs.

Useful? React with 👍 / 👎.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the root developer entrypoints (launcher + TUI + automation) to align with the current Codex-backed runtime defaults, and adds a root justfile to make the root checkout the primary workflow surface.

Changes:

  • Update scripts/run/tau-unified.sh defaults to gpt-5.3-codex and new timeout/retry defaults, forwarding those flags to tau-coding-agent.
  • Update tau-tui agent-mode defaults/tests so --dry-run emits gpt-5.3-codex.
  • Add a root justfile plus a contract test script to validate the root launcher/just entrypoint wiring.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
specs/3611-root-dev-launcher-sync.md Adds a spec-like document describing the desired root launcher/justfile alignment.
scripts/run/test-tau-unified.sh Updates contract assertions to validate new default model/timeout/retry flags.
scripts/run/tau-unified.sh Changes unified launcher defaults and adds/validates new timeout & retry flags for runtime and TUI paths.
scripts/dev/test-root-just-launcher.sh Adds a contract test to validate root justfile recipes exist and dry-run to the launcher.
justfile Introduces root recipes for stack lifecycle, TUI launch, and session reset flows.
crates/tau-tui/src/main.rs Updates agent-mode default model and adjusts associated CLI tests/help text.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +5
# 3611-root-dev-launcher-sync

## Objective
Align the root repo developer entrypoints with the current Codex-backed interactive runtime so the root checkout is the authoritative path for starting, restarting, and testing the Tau TUI stack.

Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This spec file doesn’t follow the repo’s binding spec contract (specs/<issue-id>/spec.md) and it’s missing a Status: line. scripts/dev/spec-archive-index.sh only scans specs/*/spec.md and extracts Status:, so this spec won’t be indexed and will show up as Unknown status.

Copilot uses AI. Check for mistakes.
Comment on lines +21 to +22
REQUEST_TIMEOUT_MS_DEFAULT="${TAU_UNIFIED_REQUEST_TIMEOUT_MS:-180000}"
AGENT_REQUEST_MAX_RETRIES_DEFAULT="${TAU_UNIFIED_AGENT_REQUEST_MAX_RETRIES:-0}"
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The launcher renamed the TUI env overrides to TAU_UNIFIED_REQUEST_TIMEOUT_MS / TAU_UNIFIED_AGENT_REQUEST_MAX_RETRIES, but existing docs still reference TAU_UNIFIED_TUI_REQUEST_TIMEOUT_MS / TAU_UNIFIED_TUI_AGENT_REQUEST_MAX_RETRIES. Consider supporting the previous env var names as fallbacks (or updating the docs in this PR) to avoid a breaking change for current users.

Suggested change
REQUEST_TIMEOUT_MS_DEFAULT="${TAU_UNIFIED_REQUEST_TIMEOUT_MS:-180000}"
AGENT_REQUEST_MAX_RETRIES_DEFAULT="${TAU_UNIFIED_AGENT_REQUEST_MAX_RETRIES:-0}"
REQUEST_TIMEOUT_MS_DEFAULT="${TAU_UNIFIED_REQUEST_TIMEOUT_MS:-${TAU_UNIFIED_TUI_REQUEST_TIMEOUT_MS:-180000}}"
AGENT_REQUEST_MAX_RETRIES_DEFAULT="${TAU_UNIFIED_AGENT_REQUEST_MAX_RETRIES:-${TAU_UNIFIED_TUI_AGENT_REQUEST_MAX_RETRIES:-0}}"

Copilot uses AI. Check for mistakes.
Comment on lines +17 to +20
stack-up-fast:
@echo "starting unified runtime (reuse credentials)"
{{TAU_ENV}}; ./scripts/run/tau-unified.sh up --auth-mode localhost-dev --model gpt-5.3-codex

Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This recipe hard-codes --model gpt-5.3-codex even though tau-unified.sh up now defaults to that model. To avoid the justfile becoming stale again when defaults change, consider relying on launcher defaults (omit --model) or centralize the value in a single just variable used by all recipes.

Copilot uses AI. Check for mistakes.

tui:
@echo "launching tau tui from root path"
{{TAU_ENV}}; ./scripts/run/tau-unified.sh tui --model gpt-5.3-codex --request-timeout-ms 180000 --agent-request-max-retries 0
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tui recipe pins --model/--request-timeout-ms/--agent-request-max-retries explicitly even though tau-unified.sh tui now defaults to these values. Keeping them duplicated here increases drift risk; consider calling ./scripts/run/tau-unified.sh tui without redundant flags (or define shared variables for the pinned values).

Suggested change
{{TAU_ENV}}; ./scripts/run/tau-unified.sh tui --model gpt-5.3-codex --request-timeout-ms 180000 --agent-request-max-retries 0
{{TAU_ENV}}; ./scripts/run/tau-unified.sh tui

Copilot uses AI. Check for mistakes.
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.

Root dev launcher defaults and justfile are stale versus current Codex TUI path

2 participants