Skip to content

Implement HTTP fix, schedule-aware chat, and object attachment system#34

Draft
Copilot wants to merge 76 commits intomainfrom
copilot/fix-stack-heap-collisions
Draft

Implement HTTP fix, schedule-aware chat, and object attachment system#34
Copilot wants to merge 76 commits intomainfrom
copilot/fix-stack-heap-collisions

Conversation

Copy link
Contributor

Copilot AI commented Feb 19, 2026

Addresses three LSL scripting issues: HTTP constant compatibility, time-based chat behavior, and object attachment for non-avatar entities.

Changes

HTTP_BODY_MAXLENGTH Compatibility

Reduced constant from 16384 to 16000 across all HTTP request handlers (RoseAdminTerminal, Main, Reporter) to prevent "invalid value" errors in certain SL regions.

Schedule-Aware Chat System

Implemented period-based behavior flags (at_work, is_awake) with conditional response logic:

Configuration (RoseConfig.txt):

WORK_AT_WORK=TRUE
WORK_IS_AWAKE=TRUE
AFTERWORK_AT_WORK=FALSE
AFTERWORK_IS_AWAKE=TRUE
NIGHT_AT_WORK=FALSE
NIGHT_IS_AWAKE=FALSE
SLEEP_MENTION_THRESHOLD=3

Link message API (WPManager ↔ Chat):

  • Request: LINK_GET_SCHEDULE_INFO (5000)
  • Response: LINK_SCHEDULE_INFO (5001) with period state

Conditional responses:

  • Sleep mode: Requires 3 mentions or 1 shout, responds with "huh? sorry, it's late, can this wait until tomorrow?"
  • Off-work: Detects work keywords, responds with "Sorry, I'm off the clock, can we chat about this tomorrow?"
  • Work mode: Normal proactive behavior

Object Attachment System

Implemented rez/link/position workflow since LSL attachments don't work for non-avatars:

Queue-based rezzing with automatic linking:

  1. Parse JSON attachment specs from waypoint config
  2. Queue objects for sequential rezzing
  3. object_rez event captures rezzed object
  4. llCreateLink() attaches as child prim
  5. llSetLinkPrimitiveParamsFast() sets relative position/rotation
  6. Auto-cleanup on activity end

JSON format:

"attachments":[
  {"item":"Clipboard","pos":"<0,0,1>","rot":"<0,0,0,1>"},
  {"item":"Coffee Cup","pos":"<0.5,0,0.8>","rot":"<0,0,0,1>"}
]

New functions: parseAttachmentsList(), queueAttachments(), processRezQueue(), detachAllObjects()

Files Modified

  • RoseAdminTerminal.lsl, RoseReceptionist_Main.lsl, [WPP]WPReporter.lsl - HTTP constant
  • RoseConfig.txt - Schedule behavior config
  • RoseReceptionist_Chat.lsl - Mention tracking and conditional responses (~100 lines)
  • [WPP]WPManager.lsl - Schedule API and complete attachment system (~350 lines)

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 5 commits February 19, 2026 00:13
…ck heap collisions

Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
…achments parsing

Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix stack heap collisions in GoWander3 script Fix stack-heap collision in waypoint config parsing Feb 19, 2026
Copilot AI requested a review from emarque February 19, 2026 00:19
Copilot AI and others added 2 commits February 19, 2026 00:32
…ional blocks

Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Copilot AI changed the title Fix stack-heap collision in waypoint config parsing Fix attachments_json scope error in processWaypoint Feb 19, 2026
Copilot AI and others added 4 commits February 19, 2026 22:38
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Copilot AI changed the title Fix attachments_json scope error in processWaypoint Fix activity completion stuck issue and add stand animation variation Feb 19, 2026
Copilot AI and others added 4 commits February 19, 2026 23:22
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Copilot AI changed the title Fix activity completion stuck issue and add stand animation variation Fix stack heap collision by reducing script memory footprint 3KB Feb 19, 2026
Copilot AI and others added 2 commits February 21, 2026 22:09
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Copilot AI changed the title Add animation cycling, schedule-based activities, and instant schedule transitions Refactor Rose Receptionist for schedule-based activities, memory efficiency, and centralized configuration Feb 21, 2026
Copilot AI and others added 3 commits February 23, 2026 04:54
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
…fixes

Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Copilot AI changed the title Refactor Rose Receptionist for schedule-based activities, memory efficiency, and centralized configuration Fix schedule transition freeze and single-activity duration matching Feb 23, 2026
Copilot AI and others added 2 commits February 23, 2026 21:28
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
…CRIBER_KEY changes

Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Copilot AI changed the title Fix schedule transition freeze and single-activity duration matching Add DEBUG mode, diagnostic status menu, and rename API_KEY to SUBSCRIBER_KEY Feb 23, 2026
Copilot AI changed the title Add DEBUG mode, diagnostic status menu, and rename API_KEY to SUBSCRIBER_KEY Refactor GoWander3: split architecture, schedule system, and debug tooling Feb 24, 2026
emarque and others added 10 commits February 23, 2026 16:22
…moving verbose debug messages

Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
…handling

Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
… attachment system

Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
…chat features

Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
Co-authored-by: emarque <18060757+emarque@users.noreply.github.com>
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