Skip to content

[WIP] Add resume and identify logic for gateway#28

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/add-resume-identify-logic
Closed

[WIP] Add resume and identify logic for gateway#28
Copilot wants to merge 1 commit intomainfrom
copilot/add-resume-identify-logic

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 20, 2026

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

src\grom\gateway.gleam:3001
User(StartSendResume(ResumingInfo(Subject(//erl(<0.132.0>), //erl(#Ref<0.968282838.1666449410.22439>)), Some(1), "wss://gateway-us-east1-d.discord.gg", "0aef0032c1d4a81d4d567904d56ada1c")))
src\grom\gateway.gleam:3001
User(StartIdentify(Welcomed("wss://gateway.discord.gg", Subject(//erl(<0.127.0>), //erl(#Ref<0.968282838.1666449410.22327>)), Subject(//erl(<0.124.0>), //erl(#Ref<0.968282838.1666449410.22274>)), IdentifyMessage(Shard(0, 1), "TOKEN", IdentifyProperties("windows_nt", "grom", "grom"), False, None, None, []), Subject(//erl(<0.145.0>), //erl(#Ref<0.968282838.1666449410.22810>)), None)))
src\grom\gateway.gleam:3001
Text("{"t":"RESUMED","s":2,"op":0,"d":{"_trace":["[\"gateway-prd-arm-us-east1-d-5457\",{\"micros\":1854,\"calls\":[\"id_created\",{\"micros\":0,\"calls\":[]},\"session_lookup_time\",{\"micros\":1619,\"calls\":[]},\"session_lookup_finished\",{\"micros\":8,\"calls\":[]},\"discord-sessions-prd-2-138\",{\"micros\":14}]}]"]}}")
src\grom\gateway.gleam:3001
Text("{"t":null,"s":null,"op":10,"d":{"heartbeat_interval":41250,"_trace":["[\"gateway-prd-arm-us-east1-d-qtld\",{\"micros\":0.0}]"]}}")
src\grom\gateway.gleam:3001
User(StartIdentify(Welcomed("wss://gateway.discord.gg", Subject(//erl(<0.127.0>), //erl(#Ref<0.968282838.1666449410.22327>)), Subject(//erl(<0.124.0>), //erl(#Ref<0.968282838.1666449410.22274>)), IdentifyMessage(Shard(0, 1), "TOKEN", IdentifyProperties("windows_nt", "grom", "grom"), False, None, None, []), Subject(//erl(<0.150.0>), //erl(#Ref<0.968282838.1666449410.22893>)), None)))
src\grom\gateway.gleam:3001
Text("{"t":"READY","s":1,"op":0,"d":{"v":10,"user_settings":{},"user":{"verified":true,"username":"Pozdrawiam, jestem botem.","primary_guild":null,"mfa_enabled":true,"id":"825753980717236274","global_name":null,"flags":0,"email":null,"discriminator":"6228","clan":null,"bot":true,"avatar":"22c82caade6b75065ef8e257499b0cdd"},"shard":[0,1],"session_type":"normal","session_id":"430861172fa237e7db939011e92f4061","resume_gateway_url":"wss://gateway-us-east1-d.discord.gg","relationships":[],"private_channels":[],"presences":[],"guilds":[{"unavailable":true,"id":"1155216444691325049"}],"guild_join_requests":[],"geo_ordered_rtc_regions":["warsaw","denmark","frankfurt","stockholm","rotterdam"],"game_relationships":[],"auth":{},"application":{"id":"825753980717236274","flags":27828224},"_trace":["[\"gateway-prd-arm-us-east1-d-qtld\",{\"micros\":175954,\"calls\":[\"id_created\",{\"micros\":495,\"calls\":[]},\"session_lookup_time\",{\"micros\":302,\"calls\":[]},\"session_lookup_finished\",{\"micros\":10,\"calls\":[]},\"discord-sessions-prd-2-12\",{\"micros\":174813,\"calls\":[\"start_session\",{\"micros\":168446,\"calls\":[\"discord-api-rpc-5cd4768744-zr9j9\",{\"micros\":100735,\"calls\":[\"get_user\",{\"micros\":14734},\"get_guilds\",{\"micros\":13395},\"send_scheduled_deletion_message\",{\"micros\":15},\"guild_join_requests\",{\"micros\":3},\"authorized_ip_coro\",{\"micros\":13},\"pending_payments\",{\"micros\":1661},\"apex_experiments\",{\"micros\":54179},\"sessions_experiments\",{\"micros\":7},\"user_activities\",{\"micros\":5},\"played_application_ids\",{\"micros\":4},\"linked_users\",{\"micros\":4},\"ad_personalization_toggles_disabled\",{\"micros\":3},\"regional_feature_config\",{\"micros\":4}]}]},\"starting_guild_connect\",{\"micros\":41,\"calls\":[]},\"presence_started\",{\"micros\":342,\"calls\":[]},\"guilds_started\",{\"micros\":67,\"calls\":[]},\"lobbies_started\",{\"micros\":1,\"calls\":[]},\"guilds_connect\",{\"micros\":1,\"calls\":[]},\"presence_connect\",{\"micros\":5885,\"calls\":[]},\"connect_finished\",{\"micros\":5899,\"calls\":[]},\"build_ready\",{\"micros\":15,\"calls\":[]},\"clean_ready\",{\"micros\":0,\"calls\":[]},\"optimize_ready\",{\"micros\":0,\"calls\":[]},\"split_ready\",{\"micros\":1,\"calls\":[]}]}]}]"]}}")
src\grom\gateway.gleam:3001
User(StartSendHeartbeat)

Based on my code and the discord dev docs, is this the proper cycle for a resume?


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI requested a review from folospior February 20, 2026 18:52
Copilot stopped work on behalf of folospior due to an error February 20, 2026 18:52
@folospior folospior closed this Feb 20, 2026
@folospior folospior deleted the copilot/add-resume-identify-logic branch February 20, 2026 18:59
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.

2 participants