Repository navigation
feat(server): compact agent-toolkit session output and full ids in next-call hints (TEC-1818) - #355
Merged
Merged
Conversation
…all hints
- t3_find_sessions, t3_inbox, t3_answer and t3_session_brief take
detail: "compact" | "full" (default compact). Compact counts tickets and
pull requests ("2 tickets · 3 PRs (1 open)"), or shows the single item;
JSON replaces the linear/pullRequests arrays with linearCount,
pullRequestCount and openPullRequestCount. Full keeps today's output.
- Every generated next-call hint names the full session id; the short ref
stays for display only, since subagent ids can share a short ref.
- t3_list_sessions takes an opaque cursor and returns nextCursor, in its
newest-change-first order, and drops linearLinks to linearLinkCount
unless detail: "full".
- Fork-owned tests: compactOutput.test.ts and
handlers.listSessionsPaging.test.ts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bk-agent-01
commented
Oct 28, 2026
bk-agent-01
left a comment
Collaborator
Author
There was a problem hiding this comment.
[cross-review r1 · gpt-6.1-sol] P2 Two correctness gaps remain: cursor recovery after an anchor disappears, and session references in wait continuation hints. No local tests ran. The storageCleanup failure also appears in base run 40705333893; this PR does not change that code.
…e resolved ids - t3_list_sessions orders newest change first with an id tie-breaker and pages strictly after the last session's (updatedAt, id) key. No offset fallback, so a deleted or moved session neither skips nor repeats others. - t3_wait timeout and matched-change hints name the resolved full session ids instead of copying the caller's references. - Tests: deleted anchor, moved anchor, equal timestamps; short refs in wait hints. customGroup test now expects id order for equal change times. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
Cross-review record — gpt-6.1-sol on a9cc2d4Rounds: 2. Verdict: clean.
No local tests, builds, or linters ran. The known storageCleanup test failure is outside this review's scope. |
bk-agent-01
marked this pull request as ready for review
October 29, 2026 06:30
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes TEC-1818
Summary
Agent-toolkit results are now short by default. Next-call hints now use the full session id, so they always resolve.
One
t3_find_sessionsline, before:After (default
detail: "compact"):detail: "full"gives the old line exactly.What changed:
t3_find_sessions,t3_inbox,t3_answerandt3_session_brieftakedetail: "compact" | "full". The default is compact. A single ticket or pull request still shows as itself.linearandpullRequestsarrays withlinearCount,pullRequestCountandopenPullRequestCount. Full keeps the arrays.thread:delegated-task:...) can share a short ref, so a short ref can match several sessions.t3_list_sessionstakes an opaquecursorand returnsnextCursor. The order is the same as before (newest change first). It now dropslinearLinkstolinearLinkCountunlessdetail: "full".Decisions
t3_whoamiandt3_waitalso use compact tagsrequestRefshortRef(task.id)callst3_list_sessionscursort3_list_sessionscompact by defaultlinearLinksmust passdetail: "full". No caller in this repository reads it.Acceptance check
compactOutput.test.ts"session heading detail"compactOutput.test.ts"session tags as data"compactOutput.test.ts"next-call hints",render.test.ts,scheduledTaskWatch.expbkt3.test.tscompactOutput.test.ts"names the full session id in t3_inbox hints"t3_list_sessionscursor pages, compactlinearLinkshandlers.listSessionsPaging.test.tsHow I tested
No local tests on the shared host; CI runs the suite.
CI run 40739549318 on head
2de0a3039: Lint, Build and Typecheck, Fork markers and the new tests pass (compactOutput.test.ts8,handlers.listSessionsPaging.test.ts5,render.test.ts6,scheduledTaskWatch.expbkt3.test.ts7). Test Server 4 fails insrc/storageCleanup.test.ts> "compares the checked-out branch without a full status". That failure is already onstage: the last run of PR #354 (40705333893) fails the same test. This PR does not touch storage cleanup.Cross-review: not run yet. The orchestrating session owns the review step.
🤖 Generated with Claude Code