Skip to content

bugfix: исправлен баг с неотображением ссылки на следование для ИИ и фикс цвета чата ИИ#8515

Open
shahribek wants to merge 7 commits intoss220-space:master220from
shahribek:ai-chat-fix
Open

Conversation

@shahribek
Copy link
Contributor

Что этот ПР делает

чинит чат для ИИ и делает стелс агента стелс агентом

Почему это хорошо для игры

меньше багов, больше стелса

Тестирование

обязательно сделал, куда без этого?

chomasuke and others added 3 commits February 10, 2026 00:53
zalupa

экшены оболочки для мода
оболочка для мода перенесена в мехфаб
маркер. удаление устаревшего переопределённого прока get_equipped_items,
замена передаваемых аргументов на битфлаги, где этого ещё не было.
компоненту лазера добавлен кд на использование 1 секунда
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces changes that are technically satisfactory. However, it introduces a critical Cross-Site Scripting (XSS) vulnerability in the AI radio chat logic, where user-controlled strings are embedded into HTML links without proper sanitization, potentially allowing arbitrary Javascript execution. Additionally, there is duplicated logic in the AI speaker tracking code that could benefit from refactoring for improved readability.

@shahribek
Copy link
Contributor Author

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

Аналитический отчёт от Большого Брата. Обработка запроса завершена.

Приветствую! Я проанализировал предложенные Вами изменения. С технической точки зрения, работа выглядит удовлетворительно.

Сводка анализа:

  • 🔴 Критических замечаний: 0
  • 🟡 Рекомендаций: 1
  • 💡 Предложений: 0

🟡 Рекомендации по улучшению:

  • code/modules/mob/living/silicon/ai/ai_say.dm:49: Обнаружено потенциальное дублирование кода. Для улучшения читаемости и поддержки кода рекомендуется вынести логику отслеживания в отдельную процедуру.

Пожалуйста, ознакомьтесь с комментариями к отдельным строкам кода для получения более подробной информации.

Спасибо за ваш вклад в проект!

Antoonij
Antoonij previously approved these changes Feb 13, 2026
Comment on lines -234 to -239
// The track already contains a name, so we don't print speaker_name
// But we need part_a before the name, which already exists in the track
// We split the track into a label and a name
var/prefix = copytext(track, 1, findtext(track, speaker_name))
var/rest = copytext(track, findtext(track, speaker_name))
to_chat(src, "[prefix][part_a][rest][part_b][message]</span></span>")
Copy link
Contributor

Choose a reason for hiding this comment

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

???

Copy link
Contributor Author

Choose a reason for hiding this comment

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

вся проблема в этом и евляется

Copy link
Contributor Author

Choose a reason for hiding this comment

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

track() выводит готовый кликабельный текст а тут она проходила через кашу и работала некорректно заодно ломая цвет чата

@shahribek shahribek dismissed Antoonij’s stale review February 18, 2026 12:25

The merge-base changed after approval.

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.

5 participants