tycono 0.1.96-beta.55 → 0.1.96-beta.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tycono",
3
- "version": "0.1.96-beta.55",
3
+ "version": "0.1.96-beta.56",
4
4
  "description": "Build an AI company. Watch them work.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -35,14 +35,19 @@ export const SetupWizard: React.FC<SetupWizardProps> = ({ onComplete }) => {
35
35
  const [resultRoles, setResultRoles] = useState(0);
36
36
  const [errorMsg, setErrorMsg] = useState('');
37
37
 
38
- // Load team templates on mount
38
+ // Load team templates delay to let Ink's first render complete
39
+ // Without delay, Ink's synchronous render blocks the event loop
40
+ // and http response callbacks don't fire → timeout
39
41
  useEffect(() => {
40
- fetchSetupTeams()
41
- .then(setTeams)
42
- .catch((err) => {
43
- setErrorMsg(`Failed to load team templates: ${err.message}`);
44
- setStep('error');
45
- });
42
+ const timer = setTimeout(() => {
43
+ fetchSetupTeams()
44
+ .then(setTeams)
45
+ .catch((err) => {
46
+ setErrorMsg(`Failed to load team templates: ${err.message}`);
47
+ setStep('error');
48
+ });
49
+ }, 500);
50
+ return () => clearTimeout(timer);
46
51
  }, []);
47
52
 
48
53
  // Esc to cancel (only during input steps)