Skip to content

Add issue report for apts cleanup crash#34

Draft
google-labs-jules[bot] wants to merge 3880 commits intomainfrom
issue-report-apts-crash-14822769920264597753
Draft

Add issue report for apts cleanup crash#34
google-labs-jules[bot] wants to merge 3880 commits intomainfrom
issue-report-apts-crash-14822769920264597753

Conversation

@google-labs-jules
Copy link
Contributor

Added issue_report.md detailing the cause and proposed fixes for the AttributeError: type object 'ObjectTableLabels' has no attribute 'TRANSIT' crash. The analysis identifies the issue as originating from the internal apts library within the sandbox Docker image, not the local repository source.


PR created automatically by Jules for task 14822769920264597753 started by @Prof-Harita

kiranani and others added 30 commits December 15, 2025 17:40
…ents (#15025)

Co-authored-by: Shnatu <snatu@google.com>
…execution confirmation for non-interactive mode (#14702)

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…on format take priority over ones using the old format (#15116)
Co-authored-by: Abhi <abhipatel@google.com>
… (#14606)

Co-authored-by: Miguel Solorio <miguelsolorio@google.com>
Co-authored-by: gemini-cli-robot <gemini-cli-robot@google.com>
Co-authored-by: joshualitt <joshualitt@google.com>
Co-authored-by: Sehoon Shon <sshon@google.com>
Co-authored-by: Adam Weidman <65992621+adamfweidman@users.noreply.github.com>
Co-authored-by: Adib234 <30782825+Adib234@users.noreply.github.com>
Co-authored-by: Jenna Inouye <jinouye@google.com>
…und (#15218)

Co-authored-by: sgeraldes <sgeraldes@users.noreply.github.com>
Prof-Harita and others added 19 commits January 17, 2026 12:42
- advisors.test.ts: mock scanSystemSync on Windows
- thinkingOrchestrator.test.ts: mock scanSystemSync on Windows
- imports.test.ts: mock os.homedir for cross-platform home resolution
- shell-utils.test.ts: add 15s timeout to PowerShell AST test
- shell-permissions.test.ts: add 15s timeout to PowerShell parser test
- confirmation-policy.test.ts: add 15s timeout to async tests
Theme A - System Spec (3 failures):
- thinkingOrchestrator.test.ts: add loadSystemSpec mock for executeTask()

Theme B - PowerShell AST (2 failures):
- shell-utils.test.ts: skip live PowerShell tests on CI
- shell-permissions.test.ts: skip live PowerShell tests on CI

Theme C - Timeouts (6 failures):
- vitest.config.ts: reduce Windows threads (2-4 vs 8-16) to prevent
  worker pool exhaustion causing 'onTaskUpdate' timeouts
- confirmation-policy.test.ts: 15s → 60s timeout
- coreToolScheduler.test.ts: 20s → 60s timeout
- clipboardUtils.test.ts: skip clipboard tests on Windows CI
- gemini.test.tsx: 30s → 90s timeout
- scripts/lint.js: Windows-compatible yamllint installation

Root cause: Windows process spawning (PowerShell, cmd.exe) is
~10x slower than Linux. Clipboard operations hang in headless CI.
- Fix browser launch blocking on Linux (spawn + unref)
- Fix credential import token reuse (reset lastRefresh)
- Fix Redirect URI mismatch (decouple binding to 127.0.0.1 from public localhost)
- Add standalone browser launch test script
This commit adds a detailed issue report (issue_report.md) analyzing the crash encountered when running the "cleanup downloads" command. The crash is caused by a missing 'TRANSIT' attribute in the 'ObjectTableLabels' class within the 'apts' library, which is part of the sandbox environment.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions
Copy link

🤖 Hi @google-labs-jules[bot], I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

@github-actions
Copy link

🤖 I'm sorry @google-labs-jules[bot], but I was unable to process your request. Please see the logs for more details.

@github-actions
Copy link

github-actions bot commented Jan 20, 2026

Size Change: -1 B (0%)

Total Size: 23.1 MB

ℹ️ View Unchanged
Filename Size Change
./bundle/gemini.js 23.1 MB -1 B (0%)
./bundle/sandbox-macos-permissive-closed.sb 1.03 kB 0 B
./bundle/sandbox-macos-permissive-open.sb 890 B 0 B
./bundle/sandbox-macos-permissive-proxied.sb 1.31 kB 0 B
./bundle/sandbox-macos-restrictive-closed.sb 3.29 kB 0 B
./bundle/sandbox-macos-restrictive-open.sb 3.36 kB 0 B
./bundle/sandbox-macos-restrictive-proxied.sb 3.56 kB 0 B

compressed-size-action

google-labs-jules bot and others added 6 commits January 20, 2026 10:30
This commit updates `issue_report.md` with a detailed architectural proposal to replace the upstream Google sandbox image with a self-managed `terminai/sandbox`. This will allow TerminAI to control internal dependencies (like `apts`) and fix bugs such as the `ObjectTableLabels.TRANSIT` crash.
This commit finalizes the `issue_report.md` with a "brutally exhaustive" architectural specification for the `terminai/sandbox` image. It outlines the strategy to replace the opaque upstream Google sandbox with a self-managed, sovereign build pipeline. This includes a detailed `Dockerfile` blueprint, dependency management strategy, security hardening measures (non-root execution, signing), and migration steps for the internal `apts` library to permanently resolve the `ObjectTableLabels.TRANSIT` crash.
…eer prompt

This commit adds a comprehensive architectural plan for migrating TerminAI to a "Sovereign Runtime". This includes:
1. `docs-terminai/specs/principal_engineer_prompt_sovereign_runtime.md`: A hyper-detailed context and prompt document for a Principal Engineer to implement the new architecture. It covers industry research (Claude Computer Use, Open Interpreter), defines a three-tiered execution strategy (Sovereign Sandbox, Managed Host Shim, Embedded Runtime), and details the migration plan for the `apts` library (T-APTS).
2. Updates to `issue_report.md` (implicitly, if any were pending, though this branch focuses on the new spec).

The goal is to fix dependency issues (like the `ObjectTableLabels.TRANSIT` crash) by ensuring TerminAI fully owns its execution environment (Docker and Host).
This commit adds `docs-terminai/specs/sovereign_runtime_architecture.md`, which details the architectural strategy to resolve upstream dependency issues (like the `ObjectTableLabels.TRANSIT` crash).

The architecture defines a "Three-Tiered Execution Strategy":
1. **Sovereign Sandbox:** A repo-owned Docker image (`packages/sandbox-image`) replacing the opaque upstream Google image.
2. **Managed Host Shim:** A fallback mechanism for non-Docker users that automatically provisions a local virtual environment with the required `terminai-apts` library.
3. **Embedded Runtime:** A future-proof tier for environments without Python.

It also includes an impact analysis on existing subsystems (MCP, Extensions, A2A), confirming low risk to these components.
This commit updates `docs-terminai/specs/sovereign_runtime_architecture.md` with a new section (2.4) summarizing research on the recently released "Claude Cowork" feature.

Key findings:
- Claude Cowork uses a local Virtual Machine (VM) for strong isolation, similar to our Tier 1 (Sovereign Sandbox) strategy.
- It validates the industry trend towards heavy isolation for agentic tasks.
- It highlights TerminAI's unique differentiator: the Tier 2 (Managed Host Shim) fallback, which supports users who cannot run VMs/Docker (e.g., headless servers, light environments), whereas Claude Cowork requires the full Desktop app infrastructure.
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.