Skip to content

restartAppIfNecessary

restartAppIfNecessary(appId): boolean

Checks whether Steam must relaunch this app. Does not need init(). Returns true when the app was not started by Steam and has no steam_appid.txt. Steam then starts the app through its client, and the app should exit as soon as possible. Returns false when Steam launched the app or steam_appid.txt is present.

number

The Steam app ID of the game.

boolean

true if Steam is relaunching the app and it should quit, otherwise false.

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.