Skip to content

chore: remove unused Identifier.descending from app ID util - #24

Open
detail-app[bot] wants to merge 1 commit into
devfrom
detail/dead-code/chore-remove-unused-identifier-descending-from-app-a130a9
Open

chore: remove unused Identifier.descending from app ID util#24
detail-app[bot] wants to merge 1 commit into
devfrom
detail/dead-code/chore-remove-unused-identifier-descending-from-app-a130a9

Conversation

@detail-app

@detail-app detail-app Bot commented Sep 7, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Removes the unused Identifier.descending export and its cascading logic (the descending: boolean parameter on generateID/create and the if (descending) { now = ~now } branch) from packages/app/src/utils/id.ts.

This code is dead: there are zero callers of Identifier.descending in production or tests via this module. The only three importers of @/utils/id (pages/session.tsx, components/prompt-input/submit.ts, components/prompt-input/build-request-parts.ts) exclusively call Identifier.ascending. The Identifier.descending references that exist elsewhere in the repo (packages/enterprise/test/core/share.test.ts) import from @opencode-ai/core/util/identifier, a different module.

Tooling: Detail: Dead Code

How did you verify your code works?

  • npx tsgo -b passes (exit code 0)
  • bun test for the two production consumer files passes:
    • components/prompt-input/submit.test.ts (8 pass)
    • components/prompt-input/build-request-parts.test.ts (14 pass)

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

History


Dead Code PRs can be configured here.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants