You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wraps the v1.1 polish theme from PR #87. Five small additions, all
agent-side or docs:
State-on-start (the user-visible one):
- prompt_builder._channel_prompt_addendum now instructs the agent to
transition the originating Linear issue to `In Progress` (or `Todo`
fallback) at agent-start, mirroring the existing `In Review` chain
fired at PR-open. Closes the gap where the issue stayed at `Backlog`
during real agent work — only the 👀 reaction and "🤖 Starting"
comment signaled progress, while humans-using-Linear expect the state
column to reflect "being worked." Skips if the issue is already in
`In Progress` or any later state; doesn't loop on list_issue_statuses.
Alain #63 review nits (4 small surgical changes):
- linear_reactions.py: auth-failure circuit breaker. Track consecutive
401/403s; after 3 strikes, log ERROR once and short-circuit all later
_graphql calls (return None) until the container restarts. Resets on
any 2xx response. Replaces the prior behaviour where revoked tokens
flooded CloudWatch with WARNs and wasted Linear API quota indefinitely.
- pipeline.py: declare `linear_eyes_reaction_id: str | None = None`
explicitly before the try block instead of relying on
`locals().get("linear_eyes_reaction_id")` in the crash handler.
Functionally identical; survives refactors and reads cleanly.
- config.py::resolve_linear_api_token: narrow `except Exception` to
`(BotoCoreError, ClientError)` from botocore.exceptions. Switch
`print()` to `shell.log("WARN", ...)` so warnings join the structured
log stream the rest of the agent uses.
- LINEAR_SETUP_GUIDE.md + cli/src/commands/linear.ts: stop telling
users to run `bgagent linear link <code>` when auto-link fails — the
code generator is a v3 feature that doesn't ship in v1, so the
suggestion was misleading. Replaced with explicit admin-assisted
fallback (DynamoDB put-item with steps to find workspaceId, viewerId,
Cognito sub) and a clear "this command exists but is non-functional
in v1" note.
Tests: 532 agent + 1268 cdk + 196 cli, all green. Deployed to
backgroundagent-dev. Smoke-tested 👀-on-start (156ms, agent unblocked)
in the prior commit; state-on-start smoke is the next manual step.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments