Skip to content

chore: remove 18 dead exported symbols in internal/ #119

Closed

Description

@ezynda3

Summary

An AST-based cross-reference of every exported symbol in internal/ found 18 exported symbols with zero references anywhere in the module (non-test and test alike). All are 3–6 months old, so this is rot rather than in-flight work.

Safe to delete because:

  • internal/ is unreachable from outside the module.
  • internal/extensions/symbols.go exposes only the kit/ext/ext namespace to Yaegi — no internal/app|session|agent|ui|tools|message package is reachable from an interpreted extension.
  • None appear in any in-repo interface (an interface method name would have counted as a use).

Candidates

File:line Symbol
internal/app/app.go:786,814 RunOnce, RunOnceResult
internal/agent/agent.go:595,1448 GenerateWithLoop, GetSystemPrompt
internal/ui/scrolllist.go:197,202,654,818 SetItemGap, ItemGap, AtTop, ScrollPercent
internal/ui/popup_list.go:510 SelectedItem
internal/ui/input.go:1018 PendingImageCount
internal/ui/session_selector.go:151 SetCurrentPath
internal/message/content.go:197,205 AddPart, AddToolCall
internal/session/tree_manager.go:1001,1237 GetCwd, AddLLMMessages
internal/session/tree_validation.go:12 ValidateParentChain
internal/tools/connection_pool.go:114,598 SetOAuthFlow, GetConnectionStats
internal/tools/mcp.go:242,1106,1241 TaskConfig, SetOnResourcesChanged, RefreshServerResources
internal/extensions/runner.go:1035 SubscribeCustomEvent

Special case: internal/core/truncate.go:19 — DefaultMaxLineLen is an exported alias of the private defaultMaxLineLen, referenced only by its own declaration. Delete the alias, keep the private constant.

Explicitly OUT of scope (recent — confirm with author first)

  • internal/daemon/tunnel.go:236,239 (StatusCh, Exited) — daemon/tunnel landed 7 days ago in a commit marked wip; this is active scaffolding.
  • internal/agent/agent.go:1227 GetExtraToolCount (8 days old).
  • internal/app/app.go:841 RunOnceWithDisplay (5 weeks old).

Verification

go build ./... && go test -race ./...

Activity

  1. added
    enhancement
    on Sep 4, 2026
  2. mark-iii-labs-huly commented on Sep 4, 2026

    @mark-iii-labs-huly

    Connected to Huly®: KIT-120

  3. added a commit that references this issue on Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions