feat: enhanced agent detection, clickable columns, PR integration, and cleanup#28
Merged
guodong-sq merged 5 commits intomainfrom Mar 10, 2026
Merged
feat: enhanced agent detection, clickable columns, PR integration, and cleanup#28guodong-sq merged 5 commits intomainfrom
guodong-sq merged 5 commits intomainfrom
Conversation
Extract shared utilities to reduce duplication across the plugin: - DurationFormat: compact/detailed duration formatting (was duplicated 3x) - PlatformUtil: OS detection (was duplicated 4x) - ClaudeSessionPaths: session dir/file resolution (was duplicated 2x) - SessionTooltipBuilder: agent tooltip HTML rendering (extracted from WorktreePanel) Remove dead code: - FakeAgentDetection: removed unused `sessions` param and `detectAgentSessions()` - WorktreeTableModel: removed private `formatDuration()`, use DurationFormat - WorktreePanel: removed `formatTooltipDuration()`, use DurationFormat - SessionStatsParser: removed custom `forEachLine`, use stdlib `useLines` Align patterns: - WorktreeTableModel.formatAgent: internal → private (tested via getValueAt) - TerminalNavigator: add debug logging to process execution catch blocks - EnhancedAgentDetector: delegate TTY resolution to TerminalNavigator.resolveTty() - SessionStatsParser: simplify countOccurrences using String.replace - Tooltip duration labels: "Duration (API)" / "Duration (wall)" to match /cost Co-authored-by: Claude Code <noreply@anthropic.com> Ai-assisted: true
The plugin-build.yml referenced the old directory name (wt-intellij-plugin) instead of wt-jetbrains-plugin, so CI never triggered for plugin changes. Also add the workflow file itself as a path trigger. Co-authored-by: Claude Code <noreply@anthropic.com> Ai-assisted: true
3a8c57c to
3757faf
Compare
The .gitignore excluded it, causing GradleWrapperMain ClassNotFoundException in CI. Co-authored-by: Claude Code <noreply@anthropic.com> Ai-assisted: true
The internal maven.global.square repo is not accessible from GitHub Actions. All dependencies resolve from mavenCentral + IntelliJ platform default repos. Co-authored-by: Claude Code <noreply@anthropic.com> Ai-assisted: true
Co-authored-by: Claude Code <noreply@anthropic.com> Ai-assisted: true
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.
Summary
Adds enhanced agent session detection, clickable table columns, GitHub PR integration, and pre-PR code cleanup to the IntelliJ plugin.
Enhanced agent session detection
~/.claude/ide/*.lock) alongside existinglsofdetection.jsonlyetClickable table columns
Agent session tooltips
.jsonltranscripts: model, tokens (in/out/cache), turns, tool uses/costoutput formatGitHub PR integration
PullRequestLoaderfetches PR state per branch viagh pr list#number(color-coded: green/gray/purple/red) or "Create PR" (blue)Code cleanup
DurationFormat(3x→1),PlatformUtil(4x→1),ClaudeSessionPaths(2x→1)SessionTooltipBuilderfrom WorktreePanel (removed 60 lines of HTML generation)FakeAgentDetection.sessions, duplicateformatDurationmethods, customforEachLineforEachLinewith stdlibuseLines, simplifycountOccurrencesformatAgentinternal→private), debug logging in process executionCI
plugin-build.ymlpath filter (wt-intellij-plugin→wt-jetbrains-plugin)