chore(deps): bump github.com/spf13/cobra from 1.10.1 to 1.10.2#1122
Merged
chore(deps): bump github.com/spf13/cobra from 1.10.1 to 1.10.2#1122
Conversation
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.10.1 to 1.10.2. - [Release notes](https://github.com/spf13/cobra/releases) - [Commits](spf13/cobra@v1.10.1...v1.10.2) --- updated-dependencies: - dependency-name: github.com/spf13/cobra dependency-version: 1.10.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
iyear
approved these changes
Dec 14, 2025
L9Lenny
added a commit
to L9Lenny/tdl
that referenced
this pull request
Dec 14, 2025
…#1112) (iyear#1115) * fix: prevent index out of range panic in chat ls command - Added length check before accessing topics.Messages slice - Prevents panic when topics.Messages is empty (length 0) - Fixes 'index out of range [-1]' error in fetchTopics function The bug occurred at line 286 where topics.Messages[len(topics.Messages)-1] was accessed without checking if the slice was empty first. When the slice is empty, len-1 equals -1, causing a panic. Fixes iyear#1122 * fix: panic index out of range in fetchTopics
L9Lenny
pushed a commit
to L9Lenny/tdl
that referenced
this pull request
Dec 14, 2025
- Added length check before accessing topics.Messages slice - Prevents panic when topics.Messages is empty (length 0) - Fixes 'index out of range [-1]' error in fetchTopics function The bug occurred at line 286 where topics.Messages[len(topics.Messages)-1] was accessed without checking if the slice was empty first. When the slice is empty, len-1 equals -1, causing a panic. Fixes iyear#1122
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.
Bumps github.com/spf13/cobra from 1.10.1 to 1.10.2.
Release notes
Sourced from github.com/spf13/cobra's releases.
Commits
88b30abchore: Migrate from gopkg.in/yaml.v3 to go.yaml.in/yaml/v3 (#2336)346d408fix: actions/setup-go v6 (#2337)fc81d20refactor: change minUsagePadding from var to const (#2325)117698arefactor: replace several vars with consts (#2328)e2dd29dAdd documentation for repeated flags functionality (#2316)0629892Fix linter (#2327)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)