Skip to content

refactor: thread context through - #6

Merged
datbth merged 1 commit into
mainfrom
refactor/context
Jul 23, 2026
Merged

refactor: thread context through#6
datbth merged 1 commit into
mainfrom
refactor/context

Conversation

@datbth

@datbth datbth commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@datbth
datbth requested a review from khanhhuy as a code owner July 23, 2026 11:38

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

Copy link
Copy Markdown

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 refactors the CLI to thread a signal-cancelable root context through the command execution tree, enabling Ctrl-C cancellation for sidecar startup, updates, and the serve loop. However, the context is not passed to the callServe function within runCommand, meaning HTTP requests to the warm server will not be context-aware and could cause the CLI to hang on Ctrl-C.

Comment thread cmd/anfra/commands.go
@datbth
datbth merged commit 8eb4642 into main Jul 23, 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.

2 participants