Skip to content

make gateway aware of config.json change#1129

Closed
cytown wants to merge 2 commits intosipeed:mainfrom
cytown:d3
Closed

make gateway aware of config.json change#1129
cytown wants to merge 2 commits intosipeed:mainfrom
cytown:d3

Conversation

@cytown
Copy link
Contributor

@cytown cytown commented Mar 5, 2026

📝 Description

make gateway command aware of config.json change

🗣️ Type of Change

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 📖 Documentation update
  • ⚡ Code refactoring (no functional changes, no api changes)

🤖 AI Code Generation

  • 🤖 Fully AI-generated (100% AI, 0% Human)
  • 🛠️ Mostly AI-generated (AI draft, Human verified/modified)
  • 👨‍💻 Mostly Human-written (Human lead, AI assisted or none)

🔗 Related Issue

📚 Technical Context (Skip for Docs)

  • Reference URL:
  • Reasoning:

🧪 Test Environment

  • Hardware: Hackintosh
  • OS: macOS 13.6
  • Model/Provider:
  • Channels:

📸 Evidence (Optional)

Click to view Logs/Screenshots

☑️ Checklist

  • My code/docs follow the style of this project.
  • I have performed a self-review of my own changes.
  • I have updated the documentation accordingly.

@sipeed-bot sipeed-bot bot added type: enhancement New feature or request domain: config labels Mar 5, 2026
@CLAassistant
Copy link

CLAassistant commented Mar 5, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@huaaudio huaaudio left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! My concern is as the reboot of gateway in PicoClaw is fast and costless, I'm still of the opinion that we should explore more lightweight alternatives for config updates.

github.com/bwmarrin/discordgo v0.29.0
github.com/caarlos0/env/v11 v11.3.1
github.com/chzyer/readline v1.5.1
github.com/fsnotify/fsnotify v1.4.9
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we import fsnotify and filetype purely for the hot reloading of config, the burden of memory & binary size has to be reckoned. In this sense I don't think it is that necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

size from 20736608 to 21120112 in x86 macOS. include 32 new commit include this one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

update new PR for remove fsnotify... pls check.

#1187

@cytown cytown closed this Mar 6, 2026
@cytown
Copy link
Contributor Author

cytown commented Mar 6, 2026

#1187

@cytown cytown deleted the d3 branch March 6, 2026 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants