* fix(skill-mcp-manager): prevent memory leaks from orphaned MCP processes - Close transport on connection failure to prevent zombie processes - Add process exit handlers (SIGINT/SIGTERM) for graceful cleanup - Use pendingConnections Map to prevent duplicate client spawns Fixes #361 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) * fix(ci): replace deprecated rhysd/actionlint-action with direct installation rhysd/actionlint-action repository was removed/archived. Use official actionlint download script instead. 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) * fix(skill-mcp-manager): add transport.close() and idle timeout to fix memory leaks Previously, disconnectSession() and disconnectAll() only called client.close() but NOT transport.close(). StdioClientTransport spawns child processes for MCP servers, and without transport.close(), these processes remained orphaned and accumulated memory (6GB leak reported). Changes: - Added missing transport.close() calls in disconnectSession() and disconnectAll() - Added idle timeout mechanism (5-minute timeout) with lastUsedAt tracking - Added cleanup timer that runs every 60 seconds to remove idle clients - Made signal handlers (SIGINT, SIGTERM, SIGBREAK) async to properly await cleanup - Ensure proper cleanup order: clear from map first, then close client, then close transport 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) * fix(ci): pin actionlint download script to v1.7.10 for supply chain security - Pin to specific release tag instead of 'main' branch - Prevents potential supply chain attacks from upstream compromises 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
23 lines
474 B
YAML
23 lines
474 B
YAML
name: Lint Workflows
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.github/workflows/**'
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/**'
|
|
|
|
jobs:
|
|
actionlint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Install actionlint
|
|
run: |
|
|
bash <(curl -sSL https://raw.githubusercontent.com/rhysd/actionlint/v1.7.10/scripts/download-actionlint.bash)
|
|
|
|
- name: Run actionlint
|
|
run: ./actionlint -color -shellcheck=""
|