Repository navigation
fix(workflows): link the ai task in the step's wait log - #126479
Conversation
The "View task" link only rendered when the step's output variable stored the whole task result. A step that maps one field, such as result.final_message, showed no link. The wait log now carries the task token whatever the step stores. Generated-By: PostHog Desktop Task-Id: 3b5f6117-59f1-4344-a15a-e1b97ef4effe
|
😎 Merged successfully - details. |
🤖 CI report✅ Trunk lane — non-backend laneThis PR is assigned to the non-backend lane. It does not run backend Python tests and may merge in parallel with PRs in other lanes. ✅ Duplication (Python) — cleanNew Python code duplication introduced by this branch. Fails at 70+ tokens in app code, or 150+ tokens when both copies live in test files. Advisory while the gate proves itself: extract a shared helper instead of copying. ✅ Duplication (TypeScript) — cleanNew TypeScript code duplication introduced by this branch. Fails at 70+ tokens in app code, or 150+ tokens when both copies live in test files. Advisory while the gate proves itself: extract a shared helper instead of copying. |
PostHog Review · Deep · reviewed
|
| Step | Status | Result |
|---|---|---|
| Prepare the diff | done | 3 files, 1 chunk |
| Pick perspectives | done | 2 perspectives |
| Run review passes | done | 0 issues |
| Merge overlapping findings | done | 0 → 0 |
| Validate findings | done | |
| Publish | done | Nothing to post |
HostHog preview —
|
|
Risk: No findings This PR appends the Sentinel reviewed |
There was a problem hiding this comment.
Approved.
Contained logging fix with regression coverage; no substantive review concerns or refusal grounds. The partial automated review does not count as independent assurance, but this change does not enter risky territory.
- Author wrote 94% of the modified lines and has 7 merged PRs in these paths (familiarity STRONG).
- PostHog Review (Deep) reviewed the current head (no findings) but skipped 1 changed file, so it does not count as assurance.
Gate mechanics and policy version
| Gate | Result | |
|---|---|---|
| prerequisites | ✓ | all clear |
| deny-list | ✓ | no deny categories matched |
| size | ✓ | 38L, 3F substantive, 56L/4F incl. docs/generated/snapshots — within ceiling |
| tier | ✓ | T1-agent / T1b-small (56L, 4F, single-area, fix) |
| stamphog 2.6.1 | .stamphog/policy.yml @ 21465b7 · reviewed head 21465b7 |
|
/trunk merge |
Problem
result.final_message, see no "View task" link in the step's logs. Raised in https://posthog.slack.com/archives/C06GG249PR6/p1793374784759689.Changes
aiTaskLogTokeninhogflow-utils.ts.How did you test this code?
Test rationale: a new case in the awaited-templates block of
hog_function.test.tsfails if the wait log loses the token. The existing executor test still covers the stored-variable link.Release status
Docs update
🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Agent: Claude Code, Opus 5.5 (
claude-opus-5-5)Skills:
/writing-tests,/writing-code-comments,/writing-pr-descriptionsMore context for AI agents
nodejs/src/cdp/services/hogflows/actions/hog_function.ts🤖 Generated with Claude Code
Created with PostHog Desktop from a PostHog Desktop task