Skip to content

chore: remove stale TODO(integrate) markers from already-integrated modules#271

Merged
Hmbown merged 1 commit into
feat/v0.8.4from
chore/issue-266-stale-todo-cleanup
May 2, 2026
Merged

chore: remove stale TODO(integrate) markers from already-integrated modules#271
Hmbown merged 1 commit into
feat/v0.8.4from
chore/issue-266-stale-todo-cleanup

Conversation

@Hmbown

@Hmbown Hmbown commented May 2, 2026

Copy link
Copy Markdown
Owner

Summary

Five // TODO(integrate) comments at the top of source files claimed their modules were "not yet integrated" — every one of them is actually wired up in the live build. They were actively misleading anyone grepping the tree for integration work.

File Verified call site
crates/tui/src/execpolicy/mod.rs tools/shell.rs:1322 (load_default_policy, ExecPolicyDecision)
crates/tui/src/sandbox/mod.rs tools/shell.rs:28-33, main.rs:2647, tui/approval.rs:30
crates/tui/src/sandbox/policy.rs main.rs:2752, tui/approval.rs:30 (SandboxPolicy)
crates/tui/src/command_safety.rs tools/shell.rs:1321, tools/tasks.rs:13, tools/approval_cache.rs:26
crates/tui/src/tui/streaming/mod.rs tui/app.rs:38 (StreamingState)

Also dropped the matching //! NOTE: Not yet integrated line from sandbox/mod.rs so the doc-comment doesn't disagree with the call sites.

mcp.rs:1771 (Wire legacy sync API into CLI subcommands or remove) is left alone — it covers an unresolved keep-or-delete decision rather than a stale tracking note.

Closes #266.

Test plan

  • grep -rn 'TODO(integrate)' crates/ now only matches mcp.rs:1771
  • cargo check -p deepseek-tui --locked clean
  • cargo fmt --all -- --check

🤖 Generated with Claude Code


Open in Devin Review

…odules

Five `// TODO(integrate)` comments and one matching "Not yet integrated"
note were misleading anyone grepping for integration work. Each module
is in fact wired up:

- execpolicy/mod.rs       → tools/shell.rs:1322 (load_default_policy)
- sandbox/mod.rs          → tools/shell.rs:28, main.rs:2647, tui/approval.rs:30
- sandbox/policy.rs       → main.rs:2752, tui/approval.rs:30 (SandboxPolicy)
- command_safety.rs       → tools/shell.rs:1321, tools/tasks.rs:13,
                            tools/approval_cache.rs:26
- tui/streaming/mod.rs    → tui/app.rs:38 (StreamingState)

The remaining TODO at mcp.rs:1771 covers a separate "wire legacy sync API
into CLI subcommands or remove" decision and is left in place.

Closes #266
Copilot AI review requested due to automatic review settings May 2, 2026 00:32

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes stale // TODO(integrate) (and one contradictory module-level note) from TUI modules that are already wired into the live build, reducing misleading “not integrated” signals when grepping for integration work.

Changes:

  • Deleted five // TODO(integrate) markers from already-integrated modules.
  • Removed a //! NOTE: Not yet integrated... line from sandbox/mod.rs to align docs with actual usage.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
crates/tui/src/execpolicy/mod.rs Removes stale “not integrated” TODO at file header.
crates/tui/src/sandbox/mod.rs Removes stale integration TODO and contradictory rustdoc note.
crates/tui/src/sandbox/policy.rs Removes stale integration TODO at file header.
crates/tui/src/command_safety.rs Removes stale integration TODO at file header.
crates/tui/src/tui/streaming/mod.rs Removes stale integration TODO at file header.

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

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request removes several TODO and NOTE comments related to future integration work across the command safety, execution policy, sandboxing, and streaming modules. I have no feedback to provide.

@Hmbown Hmbown merged commit c7d3f83 into feat/v0.8.4 May 2, 2026
6 checks passed
@Hmbown Hmbown deleted the chore/issue-266-stale-todo-cleanup branch May 2, 2026 01:28
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.

2 participants