Skip to content

Add SANDBOX_USE_SRT and ENABLE_SEMANTIC_SEARCH environment variables#4

Merged
FZR95 merged 6 commits intomainfrom
wcl/feature(srt)
Mar 29, 2026
Merged

Add SANDBOX_USE_SRT and ENABLE_SEMANTIC_SEARCH environment variables#4
FZR95 merged 6 commits intomainfrom
wcl/feature(srt)

Conversation

@Oops-maker
Copy link
Copy Markdown
Collaborator

@Oops-maker Oops-maker commented Mar 27, 2026

Change Type

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / optimization
  • Other

Description

Add SANDBOX_USE_SRT and ENABLE_SEMANTIC_SEARCH environment variables

Related Issue

none

Checklist

  • Unit tests pass: pytest -q -m "not integration"
  • If touching AgentSDK call paths, ran locally with real .env: bash scripts/ci_local.sh
  • Updated relevant docs (if applicable)
  • Follows project code style

@FZR95
Copy link
Copy Markdown
Contributor

FZR95 commented Mar 29, 2026

@codex

Copy link
Copy Markdown

@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: 138ed27946

ℹ️ 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 268 to 271
expert_names=expert_names,
max_turns=max_turns,
max_budget_usd=max_budget_usd,
allowed_tools=allowed_tools,
)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Pass allowed_tools into run_discussion

run_discussion_for_topic() accepts an allowed_tools argument from the API layer, but this call no longer forwards it to run_discussion(), so custom tool allowlists are silently ignored and the default tool set is used instead. This changes runtime behavior for any topic that configures restricted tools (or depends on extra tools) and can unintentionally broaden tool access.

Useful? React with 👍 / 👎.

if SANDBOX_AVAILABLE:
sandbox_type = "macos-sandbox-exec" if MACOS_SANDBOX else "linux-bwrap"
logger.info("[SandboxExec] OS sandbox available: %s", sandbox_type)
SANDBOX_AVAILABLE: bool = SRT_AVAILABLE or MACOS_SANDBOX or LINUX_BWRAP
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Make SANDBOX_AVAILABLE honor SANDBOX_USE_SRT

SANDBOX_AVAILABLE is now true whenever srt is installed, but run_in_os_sandbox() can still skip srt when SANDBOX_USE_SRT=false and then fall through to the legacy backend path. On hosts that have srt installed but lack sandbox-exec/bwrap, callers that gate on SANDBOX_AVAILABLE will still invoke sandboxing and hit a missing-backend failure instead of the intended unsandboxed fallback.

Useful? React with 👍 / 👎.

--with httpx \
pytest -m "not integration" -v --tb=short
pytest -m "not integration" -v --tb=short; then
UNIT_RC=$?
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve unit-test failure exit status in ci_local

Inside the if ! uv run ...; then block, UNIT_RC=$? records the status of the negated condition (which is 0 in this branch), and the script never exits non-zero for unit-test failures. As a result, scripts/ci_local.sh can report success after passing integration tests even when the unit-test gate failed, which breaks the script’s stated CI-equivalence behavior.

Useful? React with 👍 / 👎.

Oops-maker and others added 6 commits March 30, 2026 00:20
Add get_sandbox_use_srt() to app/core/config.py. This boolean flag
(default: true) controls whether the system prefers sandbox-runtime
(srt) over the legacy bwrap/sandbox-exec code path for OS-level
sandboxing. Operators can set SANDBOX_USE_SRT=false to fall back.

Part of the sandbox-runtime integration work.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remote force-push reverted two earlier fixes (commit 202e785).
Re-applying them:

1. app/services/profile_helper/sessions.py: re-add list_ids() function
   that returns all active session IDs after cleanup. Required by
   agent_links API which imports and calls profile_sessions.list_ids().

2. tests/test_agent_links_api.py: re-add session_id parameter to
   _fake_stream_chat() mock. The actual API passes session_id as a
   keyword argument to stream_chat().

Note: test_copy_mcp_to_workspace_with_env failure is a pre-existing
issue from remote (test expects streamableHttp MCP copy, but code
intentionally skips it).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ntries

Normalize libs metadata JSON formatting and add test sample entries for
topiclab_shared experts and moderator_modes. Add .github/copilot-instructions.md
for repository-specific Copilot CLI guidance. These changes were created
locally during workspace sync and are being committed to keep the repo tidy.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…EARCH (env)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 29, 2026 16:35
@FZR95 FZR95 force-pushed the wcl/feature(srt) branch from 138ed27 to 27ce497 Compare March 29, 2026 16:35
Copy link
Copy Markdown
Contributor

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.

Copilot was unable to review this pull request because the user who requested the review is ineligible. To be eligible to request a review, you need a paid Copilot license, or your organization must enable Copilot code review.

@FZR95 FZR95 merged commit 8627581 into main Mar 29, 2026
4 checks passed
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.

3 participants