Skip to content

Fix build: qualify isTerminalWriter in activity_cmd.go#1013

Merged
gtrrz-victor merged 1 commit intomainfrom
fix/activity-cmd-is-terminal-writer
Apr 23, 2026
Merged

Fix build: qualify isTerminalWriter in activity_cmd.go#1013
gtrrz-victor merged 1 commit intomainfrom
fix/activity-cmd-is-terminal-writer

Conversation

@gtrrz-victor
Copy link
Copy Markdown
Contributor

@gtrrz-victor gtrrz-victor commented Apr 23, 2026

https://entire.io/gh/entireio/cli/trails/058a346a8f5c

Summary

Fix

Add the interactive import and qualify the call. One-line change plus import.

Test plan

  • go build ./... succeeds locally
  • mise run fmt && mise run lint clean
  • CI green (e2e jobs unblocked)

🤖 Generated with Claude Code


Note

Low Risk
Low risk: fixes a compile-time undefined symbol by calling the existing interactive.IsTerminalWriter, with no behavioral change beyond restoring the intended terminal detection.

Overview
Fixes a build break in activity_cmd.go by importing interactive and switching the non-interactive fallback check from an undefined isTerminalWriter to interactive.IsTerminalWriter.

Reviewed by Cursor Bugbot for commit c56b7ac. Configure here.

main broken after PR #999 (activity) + PR #1011 (simplify-tty-detection)
merged without reconciling: activity_cmd.go calls unqualified
`isTerminalWriter`, but the function lives in the `interactive` package
(siblings status_style.go, search_cmd.go, explain.go all qualify with
`interactive.IsTerminalWriter`).

Add the import and qualify the call.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Entire-Checkpoint: a595e477f483
Copilot AI review requested due to automatic review settings April 23, 2026 12:43
@gtrrz-victor gtrrz-victor requested a review from a team as a code owner April 23, 2026 12:43
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.

Pull request overview

Fixes a build break in the entire activity command by using the shared TTY-detection helper from the interactive package, aligning this file with other CLI call sites.

Changes:

  • Import cmd/entire/cli/interactive in activity_cmd.go
  • Replace the unqualified isTerminalWriter(w) call with interactive.IsTerminalWriter(w) to restore compilation

@gtrrz-victor gtrrz-victor enabled auto-merge April 23, 2026 12:57
@gtrrz-victor gtrrz-victor merged commit 6414372 into main Apr 23, 2026
17 of 18 checks passed
@gtrrz-victor gtrrz-victor deleted the fix/activity-cmd-is-terminal-writer branch April 23, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants