Skip to content

Tab completion breaks randomly after a while. #9832

@ghost

Description

Expected behavior

Tabbing commands should work no problem.

Observed/Actual behavior

When the player joins, they can use command tab completion just fine, but after a few minutes it seems to break randomly

It seems from packet logging, the client IS being sent tab completion packets, but refusing to show them:

S2C
TAB_COMPLETE
[a(int):0],
[b(com.mojang.brigadier.suggestion.Suggestions):Suggestions{range=StringRange{start=7, end=7}, suggestions=[Suggestion{range=StringRange{start=7, end=7}, text='test1', tooltip='null'}, Suggestion{range=StringRange{start=7, end=7}, text='test2', tooltip='null'}]}]

Also, the transaction id sent by the vanilla 1.20.2 client always seems to be zero,

C2S
TAB_COMPLETE [a(int):0],[b(java.lang.String):/test te],

which makes no sense. Yet tab completion does function for the first few minutes of being online with this zero id.

Steps/models to reproduce

public class Test implements TabExecutor {

@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
    return true;
}

@Override
public List<String> onTabComplete(CommandSender sender, Command arg1, String arg2, String[] args) {
    return List.of("test1","test2");
}

}

Paper version

This server is running Paper version git-Paper-"f613437" (MC: 1.20.2) (Implementing API version 1.20.2-R0.1-SNAPSHOT) (Git: f613437)
You are running the latest version
Previous version: git-Paper-"a2ba452" (MC: 1.20.2)

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething doesn't work as it was intended to.

    Type

    No fields configured for Bug.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions